Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.

This commit is contained in:
Bill Paul 1995-12-02 21:54:59 +00:00
parent 4a8128ffc7
commit de32dbbd5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12585

View File

@ -191,7 +191,8 @@ setnetgrent(group)
*/
if (_use_only_yp && _yp_innetgr) {
/* dohw! */
fclose(netf);
if (netf != NULL)
fclose(netf);
return;
}
#else