adenilson / rpms / zlib

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