summaryrefslogtreecommitdiffstats
path: root/main/zlib/gzflush.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/zlib/gzflush.patch')
-rw-r--r--main/zlib/gzflush.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/zlib/gzflush.patch b/main/zlib/gzflush.patch
new file mode 100644
index 000000000..5e97e6573
--- /dev/null
+++ b/main/zlib/gzflush.patch
@@ -0,0 +1,12 @@
+--- a/gzwrite.c 2010-01-18 21:18:27.000000000 +0100
++++ b/gzwrite.c 2010-01-28 04:37:20.330530306 +0100
+@@ -435,7 +435,8 @@
+ state = (gz_statep)file;
+
+ /* check that we're writing and that there's no error */
+- if (state->mode != GZ_WRITE|| state->err != Z_OK)
++ if (state->mode != GZ_WRITE || state->err != Z_OK)
++ return Z_STREAM_ERROR;
+
+ /* check flush parameter */
+ if (flush < 0 || flush > Z_FINISH)