Catch certain gzip failures at close time.

This commit is contained in:
kientzle 2009-12-28 02:05:28 +00:00
parent 2c11cde23a
commit 9de6e5e034

View File

@ -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. */