mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.
This commit is contained in:
parent
4a8128ffc7
commit
de32dbbd5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12585
@ -191,7 +191,8 @@ setnetgrent(group)
|
||||
*/
|
||||
if (_use_only_yp && _yp_innetgr) {
|
||||
/* dohw! */
|
||||
fclose(netf);
|
||||
if (netf != NULL)
|
||||
fclose(netf);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user