From: Sharath Ramamurthy Date: Sat, 7 Aug 2021 17:01:36 +0000 (+0530) Subject: zebra: check for vni before comparison in zl3vni_map_to_vxlan_if_ns X-Git-Tag: base_9.0~402^2~47 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fe44a3696f1fdde3e5e19813f253c03b97be9736;p=matthieu%2Ffrr.git zebra: check for vni before comparison in zl3vni_map_to_vxlan_if_ns Check for vni before doing comparion during vxlan vni search in zl3vni_map_to_vxlan_if_ns Signed-off-by: Sharath Ramamurthy --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 61cbc65e32..bb82d4022d 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -1791,7 +1791,7 @@ static int zl3vni_map_to_vxlan_if_ns(struct ns *ns, vxl = &zif->l2info.vxl; vni = zebra_vxlan_if_vni_find(zif, zl3vni->vni); - if (vni->vni != zl3vni->vni) + if (!vni || vni->vni != zl3vni->vni) continue; /* link of VXLAN interface should be in zebra_evpn_vrf */