]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fix usage of accidental NULL pointer
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Mon, 15 Aug 2016 16:04:30 +0000 (12:04 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Mon, 15 Aug 2016 16:52:05 +0000 (12:52 -0400)
commit352534ac21dd985fa3b5c71a0276849cb7a71633
tree1884e13463b061683b3875ce5fc39be701204be7
parent911ad1e2f9044191a1d05d384212078d6011ac35
zebra: Fix usage of accidental NULL pointer

NS_DEFAULT is #defined to 0, We are passing it
in to a function that is taking 'struct zebra_ns *'
which is translating into a NULL pointer.  Which
in some situations will cause a crash.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
             Daniel Walton <dwalton@cumulusnetworks.com>
             Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

(cherry picked from commit 1e9fa2763953adc603c3acc4ed2a46c9e72cbb29)
(cherry picked from commit e33efc8aa85ad17698bd8d42f1d32d80eb5ca4b6)
zebra/rt_netlink.c