]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix missing node attribute set in ifp
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 4 May 2018 07:43:52 +0000 (09:43 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 4 May 2018 14:50:47 +0000 (16:50 +0200)
commit393ec5424e35d1469d6a3c9ac7cd0f38481bb359
tree9620e7edfdcc563d7a7c6c5816e31063ae61e535
parent5efbf310549f60de33946d0de3399d5586f6896a
zebra: fix missing node attribute set in ifp

There are cases when switching from one netns to an other one, where the
if_table registration by index has not been flushed. This fix mitigates
the potential crashes, in case the ifp->node pointer is null, the value
is overwritten by the route_node obtained.

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