Fix infinite loop in VTP dissector. Bug 8887 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8887)

svn path=/trunk/; revision=50340
This commit is contained in:
Michael Mann 2013-07-03 12:42:17 +00:00
parent b00abd1c43
commit 0bad33df96
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}