Fix a bug that could result in getpw*() incorrectly returning NULL when NIS
adjunct maps are used. One symtom of this bug is sshd saying: login_get_lastlog: Cannot find account for uid X when logging in. The problem here is caused by an incorrect reuse of the rv variable when previous values are needed later.
This commit is contained in:
parent
e70b4d9660
commit
eabb1158e0
@ -1136,6 +1136,7 @@ nis_passwd(void *retval, void *mdata, va_list ap)
|
||||
pwd->pw_fields |= _PWF_NIS;
|
||||
if (retval != NULL)
|
||||
*(struct passwd **)retval = pwd;
|
||||
rv = NS_SUCCESS;
|
||||
}
|
||||
return (rv);
|
||||
erange:
|
||||
|
Loading…
Reference in New Issue
Block a user