mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
(__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL.
This commit is contained in:
@@ -81,7 +81,7 @@ __getlogin_r_loginuid (name, namesize)
|
||||
use_malloc = true;
|
||||
}
|
||||
|
||||
if (res != 0)
|
||||
if (res != 0 || tpwd == NULL)
|
||||
{
|
||||
result = -1;
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user