]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Prevent Null pointer usage
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 27 Jul 2020 10:59:45 +0000 (06:59 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 27 Jul 2020 10:59:45 +0000 (06:59 -0400)
commit7b3a38053141a3ebfc5b039bc191c5e08d8b9cef
tree7808c8b4bb524e66e55755a5db962c71de253d08
parent3130e2868685e7714aa1a90d83320df05addb3a3
bgpd: Prevent Null pointer usage

Coverity rightly points out that bgp_table_top might return
NULL and immediately deref'ing it might be a problem.
Add a bit of safety.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_bmp.c