mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-04 03:22:14 +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;
|
use_malloc = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res != 0)
|
if (res != 0 || tpwd == NULL)
|
||||||
{
|
{
|
||||||
result = -1;
|
result = -1;
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user