mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
remember to reset nextgrp in getnetgrent(), so that subsequent calls to getnetgrent() doesn't return bogus information.
MFC after: 3 days
This commit is contained in:
parent
ac7025dee0
commit
6920b9cc54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140194
|
@ -273,6 +273,7 @@ endnetgrent(void)
|
|||
free((char *)ogp);
|
||||
}
|
||||
grouphead.gr = (struct netgrp *)0;
|
||||
nextgrp = (struct netgrp *)0;
|
||||
#ifdef YP
|
||||
_netgr_yp_enabled = 0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue