]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fixup crash with vlan interfaces attempted to be used
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Jul 2017 17:42:40 +0000 (13:42 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 May 2018 23:24:15 +0000 (19:24 -0400)
commit8cb73ba40d85ca8f93aa7f976399e8151dea9c8e
tree2d33ee24dec4b62b0d26865b24cdb9bfe0351e50
parentdcfe47166ad236aefc49bf0a0c262f500372d55b
zebra: Fixup crash with vlan interfaces attempted to be used

When zebra starts up it receives from the kernel a full dump of
interface information.  Unfortunately it is in no particular order.
As such we sometimes receive data from the kernel about interfaces
we do not know about yet.

In this bug, we are attempting to use the interface pointer(->link)
for a vlan interface that we have not properly resolved.

This fix ensures that we will not attempt to call zvni_map_svi
if we have a NULL pointer.  There are other places in the code
we are already checking for the fact that the ->link pointer
is valid before calling this function, so I believe that this
is correct.

We do need to come back and resolve all ->link pointers
after we have received the full table.  This can be
done in another commit.

Ticket: CM-17041
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/interface.c