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