]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix DFLTCC ignoring flush modes when avail_in == 0
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 13 Aug 2020 09:50:46 +0000 (11:50 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 21 Aug 2020 19:54:12 +0000 (21:54 +0200)
arch/s390/dfltcc_deflate.c

index a088a7315509b06504df21d9d15fc5fcb78f6901..4692789f8f6cc454387a51a7a881f18a927e3207 100644 (file)
@@ -135,7 +135,8 @@ again:
         /* Clear history. */
         if (flush == Z_FULL_FLUSH)
             param->hl = 0;
-        *result = need_more;
+        /* Trigger block post-processing if necessary. */
+        *result = no_flush ? need_more : block_done;
         return 1;
     }