diff options
author | 2004-01-28 19:18:38 +0000 | |
---|---|---|
committer | 2004-01-28 19:18:38 +0000 | |
commit | 513f0308df94b92f9982cb89a829a500d4a8f32b (patch) | |
tree | 5b47ec466199b24f82eef3ef69010b1622fb2987 | |
parent | missing free and fix memset misuse; From: Patrick Latifi <pat@eyeo.org> (diff) | |
download | wireguard-openbsd-513f0308df94b92f9982cb89a829a500d4a8f32b.tar.xz wireguard-openbsd-513f0308df94b92f9982cb89a829a500d4a8f32b.zip |
STOP events for all sessions before we exit.
allows for some cleanup to happen, especially we need this to remove
the md5sig flows
-rw-r--r-- | usr.sbin/bgpd/session.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 09525f8174d..c37e3addc94 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.99 2004/01/28 18:24:25 henning Exp $ */ +/* $OpenBSD: session.c,v 1.100 2004/01/28 19:18:38 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -340,6 +340,9 @@ session_main(struct bgpd_config *config, struct peer *cpeers, int pipe_m2s[2], nfds -= control_dispatch_msg(&pfd[j], j); } + for (p = peers; p != NULL; p = p->next) + bgp_fsm(p, EVNT_STOP); + control_shutdown(); log_info("session engine exiting"); _exit(0); |