From ee5c5e93612f6b9b875cfe8736bf738242c3c11f Mon Sep 17 00:00:00 2001 From: Chris Maynard Date: Tue, 2 Apr 2013 21:13:02 +0000 Subject: Both tvb_length_remaining and tvb_reported_length_remaining can return -1. #BACKPORT(1.6,1.8 ... manually as other occurrences are in those trunks) svn path=/trunk/; revision=48710 --- epan/dissectors/packet-dvmrp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-dvmrp.c') diff --git a/epan/dissectors/packet-dvmrp.c b/epan/dissectors/packet-dvmrp.c index 471705c18f..2fd819b416 100644 --- a/epan/dissectors/packet-dvmrp.c +++ b/epan/dissectors/packet-dvmrp.c @@ -539,7 +539,7 @@ dissect_dvmrp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset += 2; /* decode all the v1 commands */ - while (tvb_reported_length_remaining(tvb, offset)) { + while (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree *tree; proto_item *item; guint8 cmd,count; -- cgit v1.2.3