From 376565041c55a30e76a3aa552d04271077cb9ea2 Mon Sep 17 00:00:00 2001 From: Eduard Stefes Date: Tue, 22 Jul 2025 16:27:48 +0200 Subject: [PATCH] fix: update the check_value (adler32) after an inflate --- contrib/s390/dfltcc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/s390/dfltcc.c b/contrib/s390/dfltcc.c index f2b222dc5..1640f0aef 100644 --- a/contrib/s390/dfltcc.c +++ b/contrib/s390/dfltcc.c @@ -581,6 +581,9 @@ dfltcc_inflate_action ZLIB_INTERNAL dfltcc_inflate(z_streamp strm, int flush, /* Translate parameter block to stream */ strm->msg = oesc_msg(dfltcc_state->msg, param->oesc); + + if (state->wrap & 4) + strm->adler = state->check = state->flags ? ZSWAP32(param->cv) : param->cv; state->last = cc == DFLTCC_CC_OK; state->bits = param->sbb; if (state->wrap & 4)