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
@ -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…
x
Reference in New Issue
Block a user