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:
Jonathan Chen 2005-01-13 18:33:01 +00:00
parent ac7025dee0
commit 6920b9cc54
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140194

View file

@ -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