aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff_lznt1.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tvbuff_lznt1.c')
-rw-r--r--epan/tvbuff_lznt1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff_lznt1.c b/epan/tvbuff_lznt1.c
index 7b1a5b64ac..9afb8d7487 100644
--- a/epan/tvbuff_lznt1.c
+++ b/epan/tvbuff_lznt1.c
@@ -82,7 +82,7 @@ do_uncompress(tvbuff_t *tvb, int offset, int in_size, wmem_array_t *obuf)
if (!tvb)
return FALSE;
- if (in_size > MAX_INPUT_SIZE)
+ if (!in_size || in_size > MAX_INPUT_SIZE)
return FALSE;
while (in_off < in_size) {