summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 2ea4d798..a3b73d74 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4716,8 +4716,7 @@ bgp_terminate (int terminating, int retain_mode)
if (retain_mode)
bgp_peer_disable(peer, NULL);
else if (terminating)
- bgp_notify_send(peer, BGP_NOTIFY_CEASE,
- BGP_NOTIFY_CEASE_ADMIN_SHUTDOWN);
+ peer_flag_set(peer, PEER_FLAG_SHUTDOWN);
else
bgp_notify_send(peer, BGP_NOTIFY_CEASE,
BGP_NOTIFY_CEASE_ADMIN_RESET);