adenilson / rpms / zlib

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