aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2022-01-06 10:50:51 +0100
committerUli Heilmeier <uh@heilmeier.eu>2022-01-06 13:01:49 +0000
commit7d79fe739eed6fd4a1f75fb3aaddf053b69da5e9 (patch)
tree8c5fd3d31f1e691842003b1749760530bbcc8a82
parentc92eb1eef2ff6ba2b7fa7ecbcdfe95e03ad37647 (diff)
downloadwireshark-7d79fe739eed6fd4a1f75fb3aaddf053b69da5e9.tar.gz
wireshark-7d79fe739eed6fd4a1f75fb3aaddf053b69da5e9.tar.bz2
wireshark-7d79fe739eed6fd4a1f75fb3aaddf053b69da5e9.zip
BGP: Fix next_hop decoding
Related to wireshark/wireshark#17836 (cherry picked from commit b587d6a266e24ec520079af4efc4f63a238bfb57)
-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 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;