Date: Fri, 8 Sep 2017 04:32:02 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323296 - stable/11/usr.sbin/bootparamd/bootparamd Message-ID: <201709080432.v884W2Lb026474@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709080432.v884W2Lb026474>