adenilson / rpms / zlib

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