]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: add null check before connecting recursive depend
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 21 Jan 2020 20:03:52 +0000 (15:03 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 30 Jan 2020 22:15:06 +0000 (17:15 -0500)
commita7e1b02d4a6794a5caa475ab6e4bfc30fdc6b31b
treeaf422fe1397a1e9cb322e8be451d969ac9d68b82
parentc8b891b48392e0d29eb7b56942e4df697d4c14fd
zebra: add null check before connecting recursive depend

Add a null check in `handle_recursive_depend()` so it
doesn't try to add a NULL pointer to the RB tree.

This was found with clang SA.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c