]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Fix dest dereference
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 2 Jan 2018 14:09:09 +0000 (09:09 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 2 Jan 2018 14:12:07 +0000 (09:12 -0500)
commit607425e5544a3f3afbb4d9b811e62433daf2c691
tree5c3b32691712d14546dd8318fac47d3a4a1bc502
parentff99c5b2bb523560108f68f9251dcd93a1b9d7ee
zebra: Fix dest dereference

The rn can not have an rn->info pointer and as
such the dest may be NULL.  Don't assign
the old_fib pointer if so.  This is ok
because we know RNODE_FOREACH... will not
iterate if dest is NULL.

Fixes: #1575
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rib.c