mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
f0c8cb0022
commit
dbb4b1c83d
1 changed files with 1 additions and 0 deletions
|
|
@ -1136,6 +1136,7 @@ fin:
|
|||
pwd->pw_fields |= _PWF_NIS;
|
||||
if (retval != NULL)
|
||||
*(struct passwd **)retval = pwd;
|
||||
rv = NS_SUCCESS;
|
||||
}
|
||||
return (rv);
|
||||
erange:
|
||||
|
|
|
|||
Loading…
Reference in a new issue