Fix for bug 3247:

Incorrect index adjustment causes failure to dissect multiple capabilities in optional parameters.

svn path=/trunk/; revision=27529
This commit is contained in:
Jaap Keuter 2009-02-23 22:07:19 +00:00
parent 60fd0aaf0b
commit 5d9a041d91
1 changed files with 1 additions and 1 deletions

View File

@ -1170,6 +1170,7 @@ dissect_bgp_capability_item(tvbuff_t *tvb, int *p, proto_tree *tree, int ctype,
if (clen < 6) {
proto_tree_add_text(tree, tvb, *p,
clen, "Capability value: Invalid");
*p += clen;
}
else {
proto_tree_add_text(tree, tvb, *p - 1,
@ -1211,7 +1212,6 @@ dissect_bgp_capability_item(tvbuff_t *tvb, int *p, proto_tree *tree, int ctype,
tclen-=4;
}
}
*p += clen;
break;
case BGP_CAPABILITY_4_OCTET_AS_NUMBER:
proto_tree_add_text(tree, tvb, *p - 2, 1,