1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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