]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Routemap processing was testing for an impossible flag 4362/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 May 2019 11:29:47 +0000 (07:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 May 2019 11:29:47 +0000 (07:29 -0400)
commitdb77a5018d961b807c83043621244970efd98495
tree570eec2a4f576d5804bc2082660124f280113387
parentdb95656d48ecc46555fc9e8524849aa73a357dcb
bgpd: Routemap processing was testing for an impossible flag

The flag PEER_FLAG_RSERVER_CLIENT is never set on peer->flags
and as such testing the flag for not being set will never
cause the if statement to be not entered.

Conversely setting update to 0 and then testing if (update && ...
will always cause another if statement to be never called, remove
it as well.

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