summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-12-17 21:38:01 +0100
committerDonald Sharp <sharpd@nvidia.com>2025-01-10 16:06:16 +0100
commit0e416ff157341b69276e122a404837a22c890105 (patch)
treeafc815c789c565b5ca603720a24599322107c419 /bgpd/bgp_fsm.c
parentMerge pull request #17813 from enkechen-panw/aigp-fix6 (diff)
downloadfrr-0e416ff157341b69276e122a404837a22c890105.tar.xz
frr-0e416ff157341b69276e122a404837a22c890105.zip
bgpd: bgp_getsockanme is connection oriented
Let's make it so. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 3d02214ca..3389f9afd 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -1819,8 +1819,8 @@ static void bgp_connect_in_progress_update_connection(struct peer_connection *co
{
struct peer *peer = connection->peer;
- bgp_updatesockname(peer, connection);
- if (!peer->su_remote && !BGP_CONNECTION_SU_UNSPEC(peer->connection)) {
+ bgp_updatesockname(connection);
+ if (!peer->su_remote && !BGP_CONNECTION_SU_UNSPEC(connection)) {
/* if connect initiated, then dest port and dest addresses are well known */
peer->su_remote = sockunion_dup(&connection->su);
if (sockunion_family(peer->su_remote) == AF_INET)