Skip to content

Commit

Permalink
Merge pull request #15445 from FRRouting/mergify/bp/stable/8.5/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 24f1d45 + bc334f0 commit f6b137a
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 @@ -4782,6 +4782,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 f6b137a

Please sign in to comment.