From: Mark Adler Date: Sun, 11 Dec 2011 06:27:24 +0000 (-0800) Subject: Do not set strm->adler when doing raw inflate. X-Git-Tag: v1.2.5.2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f;p=thirdparty%2Fzlib-ng.git Do not set strm->adler when doing raw inflate. --- diff --git a/inflate.c b/inflate.c index 15235985e..92a46656d 100644 --- a/inflate.c +++ b/inflate.c @@ -109,7 +109,8 @@ z_streamp strm; state = (struct inflate_state FAR *)strm->state; strm->total_in = strm->total_out = state->total = 0; strm->msg = Z_NULL; - strm->adler = 1; /* to support ill-conceived Java test suite */ + if (state->wrap) /* to support ill-conceived Java test suite */ + strm->adler = state->wrap & 1; state->mode = HEAD; state->last = 0; state->havedict = 0;