src/share/bin/parse_manifest.c

Print this page

        

@@ -89,11 +89,11 @@
             free(in);
             return (NULL);
         }
         zs.next_out = (Byte*)out;
         zs.avail_out = (uInt)entry->isize;
-        if (inflate(&zs, Z_PARTIAL_FLUSH) < 0) {
+        if (inflate(&zs, Z_FINISH) != Z_STREAM_END) {
             free(in);
             free(out);
             return (NULL);
         }
         *(char *)((size_t)out + entry->isize) = '\0';