]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
If Zip entry has already been read, don't try to read it again.
authorTim Kientzle <kientzle@gmail.com>
Sat, 14 Jun 2008 14:01:08 +0000 (10:01 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 14 Jun 2008 14:01:08 +0000 (10:01 -0400)
SVN-Revision: 111

libarchive/archive_read_support_format_zip.c

index 4cdde5ed6c833a3d59aa89ae919f7abf6d2962b8..d6fe8808621600f7917b385ee91dc2e5543d3673 100644 (file)
@@ -747,6 +747,10 @@ archive_read_format_zip_read_data_skip(struct archive_read *a)
 
        zip = (struct zip *)(a->format->data);
 
+       /* If we've already read to end of data, we're done. */
+       if (zip->end_of_entry_cleanup)
+               return (ARCHIVE_OK);
+
        /*
         * If the length is at the end, we have no choice but
         * to decompress all the data to find the end marker.