Don't leak bpf on early return when YP isn't defined (NIS support)

MFC after:	1 week
Reported by:	cppcheck
This commit is contained in:
Enji Cooper 2017-08-17 20:41:28 +00:00
parent c354522292
commit c78c36cd9c

View File

@ -239,6 +239,8 @@ int blen;
warnx("could not close %s", bootpfile);
return(1);
#else
if (fclose(bpf))
warnx("could not close %s", bootpfile);
return(0); /* ENOTSUP */
#endif
}