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>
This commit is contained in:
Bill Paul 1999-06-04 02:27:35 +00:00
parent 9c9906e912
commit a180d48db0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47721

View file

@ -255,6 +255,8 @@ endpwent()
_ypcache = (DB *)NULL;
_yp_exclusions = 0;
}
/* Fix for PR #12008 */
_yp_enabled = -1;
#endif
}