From: Ilya Leoshkevich Date: Thu, 13 Aug 2020 09:50:46 +0000 (+0200) Subject: Fix DFLTCC ignoring flush modes when avail_in == 0 X-Git-Tag: 1.9.9-b1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40acb3fe1e79a3ca441ef38325a357e02fc96a6d;p=thirdparty%2Fzlib-ng.git Fix DFLTCC ignoring flush modes when avail_in == 0 --- diff --git a/arch/s390/dfltcc_deflate.c b/arch/s390/dfltcc_deflate.c index a088a731..4692789f 100644 --- a/arch/s390/dfltcc_deflate.c +++ b/arch/s390/dfltcc_deflate.c @@ -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; }