summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_bfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-08-26 23:30:10 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-09-09 22:28:05 +0200
commit3842286ed40d727fa338910139fc40daf9228d50 (patch)
tree62aa5e3f0ab8b6675ee5ed7838e2403d951a71ad /bgpd/bgp_bfd.c
parentbgpd: move t_pmax_restart to peer_connection (diff)
downloadfrr-3842286ed40d727fa338910139fc40daf9228d50.tar.xz
frr-3842286ed40d727fa338910139fc40daf9228d50.zip
bgpd: bgp_notify_send use peer_connection instead of peer
The bgp_notify_send function should use a peer_connection Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r--bgpd/bgp_bfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 7f83e9710..ba04c6fe8 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -57,7 +57,7 @@ static void bfd_session_status_update(struct bfd_session_params *bsp,
/* rfc9384 */
if (BGP_IS_VALID_STATE_FOR_NOTIF(peer->connection->status))
- bgp_notify_send(peer, BGP_NOTIFY_CEASE,
+ bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
BGP_NOTIFY_CEASE_BFD_DOWN);
BGP_EVENT_ADD(peer, BGP_Stop);