Merge pull request #15443 from FRRouting/mergify/bp/stable/9.1/pr-15399

zebra: fix crash when macvlan link-interface is in another netns (backport #15399)
This commit is contained in:
Russ White 2024-02-27 14:16:41 -05:00 committed by GitHub
commit 111a9e1ada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5110,6 +5110,11 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
zif = ifp->info;
assert(zif);
if (zif->link_nsid)
/* the link interface is another namespace */
return;
link_ifp = zif->link;
link_zif = link_ifp->info;
assert(link_zif);