Skip to content

Commit

Permalink
Merge pull request #15443 from FRRouting/mergify/bp/stable/9.1/pr-15399
Browse files Browse the repository at this point in the history
zebra: fix crash when macvlan link-interface is in another netns (backport #15399)
  • Loading branch information
riw777 authored Feb 27, 2024
2 parents ac19b7c + 016eb0c commit 111a9e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zebra/zebra_vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 111a9e1

Please sign in to comment.