adenilson / rpms / zlib

Forked from rpms/zlib 8 months ago
Clone
27a3e5
--- zlib-1.2.11/contrib/s390/dfltcc_deflate.h.old	2023-05-04 09:39:23.423753908 +0000
27a3e5
+++ zlib-1.2.11/contrib/s390/dfltcc_deflate.h	2023-05-04 09:39:48.087753908 +0000
27a3e5
@@ -45,11 +45,11 @@ int ZLIB_INTERNAL dfltcc_deflate_get_dic
27a3e5
 #define DEFLATE_DONE dfltcc_deflate_done
27a3e5
 #define DEFLATE_BOUND_ADJUST_COMPLEN(strm, complen, source_len) \
27a3e5
     do { \
27a3e5
-        if (dfltcc_can_deflate((strm))) \
27a3e5
+	if (deflateStateCheck((strm)) || dfltcc_can_deflate((strm))) \
27a3e5
             (complen) = DEFLATE_BOUND_COMPLEN(source_len); \
27a3e5
     } while (0)
27a3e5
 #define DEFLATE_NEED_CONSERVATIVE_BOUND(strm) (dfltcc_can_deflate((strm)))
27a3e5
 #define DEFLATE_HOOK dfltcc_deflate
27a3e5
 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))
27a3e5
 
27a3e5
-#endif
27a3e5
\ No newline at end of file
27a3e5
+#endif