diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-06-04 02:27:35 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-06-04 02:27:35 +0000 |
commit | caa34cac11d838864c76cea93337b3f050b1f0a7 (patch) | |
tree | 520a1e86cbd99f12fcfce725aca652f6fce340d1 /lib/libc/gen/getpwent.c | |
parent | 8d081cadd7d0bba2f3f4723a0b0dd0f21b78b02f (diff) | |
download | FreeBSD-src-caa34cac11d838864c76cea93337b3f050b1f0a7.zip FreeBSD-src-caa34cac11d838864c76cea93337b3f050b1f0a7.tar.gz |
Apply patch for PR #12008: remember to reset _yp_enabled flag in
endpwent() so we don't trip over a NULL db pointer later.
PR: 12008
Submitted by: Valentin Netchayev <netch@lucky.net>
Diffstat (limited to 'lib/libc/gen/getpwent.c')
-rw-r--r-- | lib/libc/gen/getpwent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index f46683f..9263002 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -255,6 +255,8 @@ endpwent() _ypcache = (DB *)NULL; _yp_exclusions = 0; } + /* Fix for PR #12008 */ + _yp_enabled = -1; #endif } |