mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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