]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: remove useless control checks about TCP connection
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 5 Apr 2024 11:52:27 +0000 (13:52 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 11 Nov 2024 08:27:19 +0000 (08:27 +0000)
commit862a15da9b176b324aa85c15f0eb8b4f10ebbf1b
tree7695205e79d08ef2ba7e4db4e1d5d982a4837468
parent30129152c1eaca9aae8a9db1dfe0c72dccb02e67
bgpd: remove useless control checks about TCP connection

When attempting to get the src and destination addresses of a given
connection, the API may return the NULL pointer, but further code
in bgp_zebra_nexthop_set() already does a check about the given
pointer.

Relaxing the error code for all the returned adressing.

Fixes: 1ff9a340588a ("bgpd: bgpd-fsm-fix.patch")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit ba7130309954fbe8d58854339ca43259149e603a)
bgpd/bgp_network.c