diff options
author | jon <jon@FreeBSD.org> | 2005-01-13 18:33:01 +0000 |
---|---|---|
committer | jon <jon@FreeBSD.org> | 2005-01-13 18:33:01 +0000 |
commit | 97f02113039b27b597708c06ddc73a16de123e80 (patch) | |
tree | a8cee79e2652df56d395a5d15b4a9e070a41c023 /lib/libc/gen/getnetgrent.c | |
parent | a8c4cacc3e68277dc4dc642fa1e89acbdc173be0 (diff) | |
download | FreeBSD-src-97f02113039b27b597708c06ddc73a16de123e80.zip FreeBSD-src-97f02113039b27b597708c06ddc73a16de123e80.tar.gz |
remember to reset nextgrp in getnetgrent(), so that subsequent calls to getnetgrent() doesn't return bogus information.
MFC after: 3 days
Diffstat (limited to 'lib/libc/gen/getnetgrent.c')
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 04e2e88..25ec521 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -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 |