adenilson / rpms / zlib

Forked from rpms/zlib 8 months ago
Clone

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

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