aboutsummaryrefslogtreecommitdiff
path: root/login/getutline_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/getutline_r.c')
-rw-r--r--login/getutline_r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/login/getutline_r.c b/login/getutline_r.c
index 0956164eab..965d46ce8f 100644
--- a/login/getutline_r.c
+++ b/login/getutline_r.c
@@ -47,6 +47,7 @@ getutline_r (const struct utmp *line, struct utmp **utmp,
if (read (utmp_data->ut_fd, &utmp_data->ubuf, sizeof (struct utmp))
!= sizeof (struct utmp))
{
+ utmp_data->loc_utmp = 0; /* Mark UTMP_DATA->ubuf invalid. */
errno = ESRCH;
return -1;
}