aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-06-08 11:57:36 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-06-08 10:04:04 +0000
commit922356799340700e5642a6193e861fa0ebcf47f0 (patch)
tree50fa86f3cd6be582b49ec51f6f4e5f4746c50e13
parentfa64878f8f7515f169c2ee688aa989ab7b73293a (diff)
BGP: fix an infinite loop when finding an invalid length in EVPN NLRI Route Type 5 option
Bug: 11256 Change-Id: I6fb037d8a3b8b0f22ebea6d08f69fb8afeed90f9 Reviewed-on: https://code.wireshark.org/review/8835 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-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 8517fc8af9..25f012c7bf 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -3946,7 +3946,7 @@ static int decode_evpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, packet
default :
expert_add_info_format(pinfo, prefix_tree, &ei_bgp_evpn_nlri_rt4_len_err,
"Invalid total nlri length (%u) in EVPN NLRI Route Type 5 (IP prefix Route)!", nlri_len);
- break;
+ return -1;
}
break;
default: