svn commit: r323296 - stable/11/usr.sbin/bootparamd/bootparamd

Ngie Cooper ngie at FreeBSD.org
Fri Sep 8 04:32:04 UTC 2017


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
     }


More information about the svn-src-all mailing list