summaryrefslogtreecommitdiff
path: root/zlib/infback.c
diff options
context:
space:
mode:
Diffstat (limited to 'zlib/infback.c')
-rw-r--r--zlib/infback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zlib/infback.c b/zlib/infback.c
index 110b03b857f..262f97c73ac 100644
--- a/zlib/infback.c
+++ b/zlib/infback.c
@@ -434,6 +434,9 @@ void FAR *out_desc;
}
}
+ /* handle error breaks in while */
+ if (state->mode == BAD) break;
+
/* build code tables */
state->next = state->codes;
state->lencode = (code const FAR *)(state->next);