diff --git a/inflate.c b/inflate.c | |
index ac333e8c2eda..69b769a871b8 100644 | |
--- a/third_party/zlib/inflate.c | |
+++ b/third_party/zlib/inflate.c | |
@@ -228,6 +228,7 @@ int stream_size; | |
state->strm = strm; | |
state->window = Z_NULL; | |
state->mode = HEAD; /* to pass state test in inflateReset2() */ | |
+ state->check = adler32(0L, Z_NULL, 0); | |
ret = inflateReset2(strm, windowBits); | |
if (ret != Z_OK) { | |
ZFREE(strm, state); |