summaryrefslogtreecommitdiff
path: root/devel/zlib/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'devel/zlib/patches/patch-ac')
-rw-r--r--devel/zlib/patches/patch-ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/zlib/patches/patch-ac b/devel/zlib/patches/patch-ac
new file mode 100644
index 00000000000..a4bd596709b
--- /dev/null
+++ b/devel/zlib/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.3 2004/08/31 23:16:23 reed Exp $
+
+--- inflate.c.orig Sat Oct 25 23:15:36 2003
++++ inflate.c
+@@ -861,6 +861,9 @@ int flush;
+ }
+ }
+
++ if (state->mode == BAD)
++ break;
++
+ /* build code tables */
+ state->next = state->codes;
+ state->lencode = (code const FAR *)(state->next);