aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-03-15 18:53:54 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-03-15 18:53:54 +0000
commitc26db21d548f2ad855b3e95d0d7ab1cdae94a902 (patch)
tree9518983ea37f221f96b7fce602c9069535f154ab /epan/dissectors
parenteb98b0f366de03655549949ae4d76b5addf24e43 (diff)
From RABRET Laurent RD-MAPS-ISS:
Please find enclosed a patch for the BGP dissector. A 0 length IP address is valid in NLRI dissection. It just means "0/0 address". svn path=/trunk/; revision=17634
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-bgp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index 29d0736f2f..39b14dabeb 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -769,7 +769,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
plen -= (labnum * 3*8);
rd_type = tvb_get_ntohs(tvb, offset);
- if (plen <= 8*8) {
+ if (plen < 8*8) {
proto_tree_add_text(tree, tvb, start_offset, 1,
"%s Labeled VPN IPv4 prefix length %u invalid",
tag, plen + (labnum * 3*8));
@@ -946,7 +946,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
plen -= (labnum * 3*8);
rd_type = tvb_get_ntohs(tvb,offset);
- if (plen <= 8*8) {
+ if (plen < 8*8) {
proto_tree_add_text(tree, tvb, start_offset, 1,
"%s Labeled VPN IPv6 prefix length %u invalid",
tag, plen + (labnum * 3*8));