summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-11-06 20:31:19 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-11-26 17:59:33 +0100
commit1baeb81632d46c20f7f75e619cfea73784d66c01 (patch)
tree3d3b97adae31194994290c886c3a9ed1d48f1a19 /bgpd/bgp_packet.c
parentbgpd: Modify bgp_connect_in_progress_update_connection to use connection (diff)
downloadfrr-1baeb81632d46c20f7f75e619cfea73784d66c01.tar.xz
frr-1baeb81632d46c20f7f75e619cfea73784d66c01.zip
bgpd: bgp_getsockname should use connection
Let's use the connection associated with the peer instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index a76a300c1..e9cc52449 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -2054,7 +2054,7 @@ static int bgp_open_receive(struct peer_connection *connection,
return BGP_Stop;
/* Get sockname. */
- if (bgp_getsockname(peer) < 0) {
+ if (bgp_getsockname(connection) < 0) {
flog_err_sys(EC_LIB_SOCKET,
"%s: bgp_getsockname() failed for peer: %s",
__func__, peer->host);