From 7d79fe739eed6fd4a1f75fb3aaddf053b69da5e9 Mon Sep 17 00:00:00 2001 From: Uli Heilmeier Date: Thu, 6 Jan 2022 10:50:51 +0100 Subject: BGP: Fix next_hop decoding Related to wireshark/wireshark#17836 (cherry picked from commit b587d6a266e24ec520079af4efc4f63a238bfb57) --- epan/dissectors/packet-bgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index aace662c4a..65d143f736 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -4428,7 +4428,7 @@ decode_mp_next_hop(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint16 * A RD is included in the NLRI in these cases, but not in * the Next Hop address unlike in AFI 1 or 2. */ - if ((length = decode_mp_next_hop_ipv4(tvb, next_hop_t, offset, pinfo, strbuf, nhlen) == 0)) { + if ((length = decode_mp_next_hop_ipv4(tvb, next_hop_t, offset, pinfo, strbuf, nhlen)) == 0) { length = decode_mp_next_hop_ipv6(tvb, next_hop_t, offset, pinfo, strbuf, nhlen); } break; -- cgit v1.2.3