Date: Tue, 17 Jan 2006 04:49:04 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_read.c archive_read_open_fd.c Message-ID: <200601170449.k0H4n42P061601@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2006-01-17 04:49:04 UTC FreeBSD src repository Modified files: lib/libarchive archive_read.c archive_read_open_fd.c Log: If the attempt to open the archive fails (either the client open routine fails or the first read fails), invoke the client close routine immediately so the client can clean up. Also, don't store the client pointers in this case, so that the client close routine can't accidentally get called more than once. A minor style fix to archive_read_open_fd.c while I'm here. PR: 86453 Thanks to: Andrew Turner for reporting this and suggesting a fix. Revision Changes Path 1.20 +36 -13 src/lib/libarchive/archive_read.c 1.5 +2 -1 src/lib/libarchive/archive_read_open_fd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601170449.k0H4n42P061601>