Author: ngie
Date: Fri Sep  8 04:32:02 2017
New Revision: 323296
URL: https://svnweb.freebsd.org/changeset/base/323296

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

Modified:
  stable/11/usr.sbin/bootparamd/bootparamd/bootparamd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/bootparamd/bootparamd/bootparamd.c
==============================================================================
--- stable/11/usr.sbin/bootparamd/bootparamd/bootparamd.c       Fri Sep  8 
01:06:35 2017        (r323295)
+++ stable/11/usr.sbin/bootparamd/bootparamd/bootparamd.c       Fri Sep  8 
04:32:02 2017        (r323296)
@@ -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
     }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to