aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2009-02-23 22:07:19 +0000
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2009-02-23 22:07:19 +0000
commit6fe2d8a876d6d065d0180989f9d3e4d97b7ff1af (patch)
treede15fd0bbd857c19ead400840ad1f893a57823f6 /epan
parent6125c46e64a1f0657d2357f30db8f1da790e556a (diff)
Fix for bug 3247:
Incorrect index adjustment causes failure to dissect multiple capabilities in optional parameters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27529 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-bgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index d2e3395cd9..1f3e9d6108 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -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,