Break out of an infinite loop. Fixes bug 138.

svn path=/trunk/; revision=14223
This commit is contained in:
Gerald Combs 2005-04-28 19:42:56 +00:00
parent 0be67943e6
commit a7082d41b0
1 changed files with 6 additions and 0 deletions

View File

@ -536,6 +536,12 @@ static void process_control_avps(tvbuff_t *tvb,
avp_vendor_id = tvb_get_ntohs(tvb, index + 2);
avp_type = tvb_get_ntohs(tvb, index + 4);
if (avp_len < 1) {
proto_tree_add_text(l2tp_avp_tree, tvb, index, 0,
"AVP length must be >= 1");
return;
}
if (avp_vendor_id == VENDOR_IETF) {
tf = proto_tree_add_text(l2tp_tree, tvb, index,
avp_len, "%s AVP",