summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2024-03-22 08:31:12 -0400
committerGitHub <noreply@github.com>2024-03-22 08:31:12 -0400
commit20e017c379df0f523eea98c67fe52ea2ffbfcc9d (patch)
treec9d768807deb2ac6fe706a312063ed156fe4d438 /zebra/zebra_vxlan.c
parent75bc220a1052654a74e35e3d6d2f578dbeca07ce (diff)
parentbdf6a9ba810b58146371e8a0000397d2ae9ea956 (diff)
Merge pull request #15010 from tlsalmin/master
zebra: Fix crash on macvlan link down/up
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index cc12cb4221..89b43f6d22 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -5159,6 +5159,15 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
return;
link_ifp = zif->link;
+ if (!link_ifp) {
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug(
+ "macvlan parent link is not found. Parent index %d ifp %s",
+ zif->link_ifindex,
+ ifindex2ifname(zif->link_ifindex,
+ ifp->vrf->vrf_id));
+ return;
+ }
link_zif = link_ifp->info;
assert(link_zif);