--- zlib.cpp 2014-11-03 15:47:02.000000000 +0000 +++ zlib.cpp.new 2014-08-19 22:23:44.000000000 +0100 @@ -150,7 +150,11 @@ (compress ? deflateEnd(s) : inflateEnd(s)) ; //); - crc_imp_ = 0; + if( compress ) { + crc_imp_ = 0; + } else { + crc_ = crc_imp_ = 0 ; + } }