]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: pi->peer assignment exists no need for null check
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 6 Apr 2019 23:53:55 +0000 (19:53 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 7 Apr 2019 00:10:52 +0000 (20:10 -0400)
commitea8b2282869d6c4a1626be98e0a6c883e48ab314
treef0de7cce29d6c908f4789bf41241ba5ebb634b48
parent3393df5cf1c0ea2e4aaa3e405253cae90070d53c
bgpd: pi->peer assignment exists no need for null check

The creation of a new `struct bgp_path_info` requires a legitimate
peer being passed in for creation.  There exists no code paths
where this is not true.  As such checking pi->peer for null convinces
SA that it might happen.

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