diff options
-rw-r--r-- | epan/dissectors/packet-bgp.c | 2 |
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, |