]> 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:10:00 +0000 (12:10 -0400)
commite33efc8aa85ad17698bd8d42f1d32d80eb5ca4b6
treeda397ad2e0c64000cedc27ec7dd26adc4674f292
parent8f500a1cf156c6033f2e0b1ef40db09f9d6f34a2
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)
zebra/rt_netlink.c