diff options
author | jon <jon@FreeBSD.org> | 2004-04-21 21:15:08 +0000 |
---|---|---|
committer | jon <jon@FreeBSD.org> | 2004-04-21 21:15:08 +0000 |
commit | a23a0292a8b040bae8b2e897093a1c2b1b2d8825 (patch) | |
tree | 2e4348aae3ca750d9a765f32f908f6f72104f921 | |
parent | 0ec35169f1fed27fc0906e275b1a4c707d073e70 (diff) | |
download | FreeBSD-src-a23a0292a8b040bae8b2e897093a1c2b1b2d8825.zip FreeBSD-src-a23a0292a8b040bae8b2e897093a1c2b1b2d8825.tar.gz |
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.
-rw-r--r-- | lib/libc/gen/getpwent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index d0e4bf3..96aee2e 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -1136,6 +1136,7 @@ fin: pwd->pw_fields |= _PWF_NIS; if (retval != NULL) *(struct passwd **)retval = pwd; + rv = NS_SUCCESS; } return (rv); erange: |