diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-01-23 14:39:11 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-01-23 14:39:11 +0000 |
commit | bb1edb03af6d771bb4193c2515235214b90006b6 (patch) | |
tree | 39d19f0a90ba61b456c7d5a6074a11b13eb5e5fa /usr.sbin/bgpd | |
parent | 1debde128c0785129351fb2b946826f910b0eec9 (diff) |
Split cases and call peer_stale() individually instead of using a
conditional argument.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 245393f2ffe..1b6b69e42a4 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.614 2024/01/15 15:44:50 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.615 2024/01/23 14:39:10 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -449,9 +449,10 @@ rde_dispatch_imsg_session(struct imsgbuf *imsgbuf) switch (imsg_get_type(&imsg)) { case IMSG_SESSION_STALE: + peer_stale(peer, aid, 0); + break; case IMSG_SESSION_NOGRACE: - peer_stale(peer, aid, - imsg_get_type(&imsg) == IMSG_SESSION_NOGRACE); + peer_stale(peer, aid, 1); break; case IMSG_SESSION_FLUSH: peer_flush(peer, aid, peer->staletime[aid]); |