aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vtp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-07-03 12:42:17 +0000
committerMichael Mann <mmann78@netscape.net>2013-07-03 12:42:17 +0000
commit0bad33df964c58ce194f34a607866c3619591286 (patch)
tree2d20c3a1ba8eaf48efc92eaa069c0b953952326e /epan/dissectors/packet-vtp.c
parentb00abd1c430de575b25320a3d4718c1c330869d0 (diff)
Fix infinite loop in VTP dissector. Bug 8887 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8887)
svn path=/trunk/; revision=50340
Diffstat (limited to 'epan/dissectors/packet-vtp.c')
-rw-r--r--epan/dissectors/packet-vtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vtp.c b/epan/dissectors/packet-vtp.c
index a2087db009..27114e85be 100644
--- a/epan/dissectors/packet-vtp.c
+++ b/epan/dissectors/packet-vtp.c
@@ -205,7 +205,7 @@ dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
while (tvb_reported_length_remaining(tvb, offset) > 0) {
vlan_info_len =
dissect_vlan_info(tvb, pinfo, offset, vtp_tree);
- if (vlan_info_len < 0)
+ if (vlan_info_len <= 0)
break;
offset += vlan_info_len;
}