adenilson / rpms / zlib

Forked from rpms/zlib 9 months ago
Clone

Blame SOURCES/zlib-1.2.11-IBM-Z-hw-accelrated-deflate-strm-adler-fix.patch

12d51c
--- a/contrib/s390/dfltcc.c
12d51c
+++ b/contrib/s390/dfltcc.c
12d51c
@@ -623,7 +623,7 @@
12d51c
     state->bits = param->sbb;
12d51c
     state->whave = param->hl;
12d51c
     state->wnext = (param->ho + param->hl) & ((1 << HB_BITS) - 1);
12d51c
-    state->check = state->flags ? ZSWAP32(param->cv) : param->cv;
12d51c
+    strm->adler = state->check = state->flags ? ZSWAP32(param->cv) : param->cv;
12d51c
     if (cc == DFLTCC_CC_OP2_CORRUPT && param->oesc != 0) {
12d51c
         /* Report an error if stream is corrupted */
12d51c
         state->mode = BAD;