aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-image-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-image-png.c')
-rw-r--r--epan/dissectors/packet-image-png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-image-png.c b/epan/dissectors/packet-image-png.c
index d9c592475b..4305ec3e81 100644
--- a/epan/dissectors/packet-image-png.c
+++ b/epan/dissectors/packet-image-png.c
@@ -232,7 +232,7 @@ dissect_png(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *da
proto_tree_add_item(tree, hf_png_signature, tvb, offset, 8, ENC_NA);
offset+=8;
- while(tvb_reported_length_remaining(tvb, offset)){
+ while(tvb_reported_length_remaining(tvb, offset) > 0){
proto_tree *chunk_tree=NULL;
proto_item *it=NULL;
guint32 len, type;