]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: clean up SA warning in vxlan code 6894/head
authorMark Stapp <mjs@voltanet.io>
Tue, 11 Aug 2020 12:39:25 +0000 (08:39 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 11 Aug 2020 12:39:25 +0000 (08:39 -0400)
Resolve an SA warning in the vxlan code.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_vxlan.c

index ff09b48dcfb58c44a7dfaa160984ba6c820a482b..ee167fa5a3430d8bb99d74dc181be1886abb724e 100644 (file)
@@ -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.
         */