summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c3
1 files changed, 3 insertions, 0 deletions
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.
*/