From b7895aad8277c4f3c87132f600f8125db9d926e2 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Tue, 11 Aug 2020 08:39:25 -0400 Subject: [PATCH] zebra: clean up SA warning in vxlan code Resolve an SA warning in the vxlan code. Signed-off-by: Mark Stapp --- zebra/zebra_vxlan.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.39.5