From 94cb97699799c89047b9b7b8f09cdcdff8e96be9 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 28 Dec 2009 02:05:28 +0000 Subject: [PATCH] Catch certain gzip failures at close time. --- lib/libarchive/archive_read_support_compression_gzip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libarchive/archive_read_support_compression_gzip.c b/lib/libarchive/archive_read_support_compression_gzip.c index b20c7697b14d..bf6ee468be76 100644 --- a/lib/libarchive/archive_read_support_compression_gzip.c +++ b/lib/libarchive/archive_read_support_compression_gzip.c @@ -411,6 +411,8 @@ gzip_filter_read(struct archive_read_filter *self, const void **p) /* Consume the stream trailer; release the * decompression library. */ ret = consume_trailer(self); + if (ret < ARCHIVE_OK) + return (ret); break; default: /* Return an error. */