Skip to content

Commit

Permalink
(__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 7, 2010
1 parent fd3ebed commit c86434c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/getlogin_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ __getlogin_r_loginuid (name, namesize)
use_malloc = true;
}

if (res != 0)
if (res != 0 || tpwd == NULL)
{
result = -1;
goto out;
Expand Down

0 comments on commit c86434c

Please sign in to comment.