]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix assert mpls when terminating zebra
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 24 Jan 2018 18:06:06 +0000 (19:06 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit40289934f1b07acf934f26aec63ed523e6889a1d
treebc4f28b51efac7386fa0ec276221d00d2fb8412a
parent7d206035d9a6dd1e66d5349f76d9c614fbac65f6
zebra: fix assert mpls when terminating zebra

The assert appears in zebra_mpls.c when checking default zebra_vrf.
It appears that when the mpls entries are flushed, it gets the default
vrf which is already flushed by vrf_terminate() function. In order to
avoid that assert to trigger a crash, the mpls flush is called before
vrf termination.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/main.c