From: Mark Stapp Date: Tue, 11 Aug 2020 12:39:25 +0000 (-0400) Subject: zebra: clean up SA warning in vxlan code X-Git-Tag: base_7.5~100^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b7895aad8277c4f3c87132f600f8125db9d926e2;p=mirror%2Ffrr.git zebra: clean up SA warning in vxlan code Resolve an SA warning in the vxlan code. Signed-off-by: Mark Stapp --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index ff09b48dcf..ee167fa5a3 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -9811,6 +9811,9 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp, bool inform_dataplane = false; bool new_static = false; + if (ifp == NULL) + return -1; + /* We are interested in MACs only on ports or (port, VLAN) that * map to a VNI. */