Date: Fri, 6 Mar 2015 22:22:57 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279712 - head/lib/libc/gen Message-ID: <201503062222.t26MMvv5018269@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Fri Mar 6 22:22:57 2015 New Revision: 279712 URL: https://svnweb.freebsd.org/changeset/base/279712 Log: compat_passwd(): yet another uninitialized access to stayopen. CID: 1018731 Modified: head/lib/libc/gen/getpwent.c Modified: head/lib/libc/gen/getpwent.c ============================================================================== --- head/lib/libc/gen/getpwent.c Fri Mar 6 22:10:42 2015 (r279711) +++ head/lib/libc/gen/getpwent.c Fri Mar 6 22:22:57 2015 (r279712) @@ -1942,7 +1942,7 @@ docompat: break; } fin: - if (!stayopen && st->db != NULL) { + if (st->db != NULL && !stayopen) { (void)st->db->close(st->db); st->db = NULL; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503062222.t26MMvv5018269>