summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-01-23 14:39:11 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-01-23 14:39:11 +0000
commitbb1edb03af6d771bb4193c2515235214b90006b6 (patch)
tree39d19f0a90ba61b456c7d5a6074a11b13eb5e5fa
parent1debde128c0785129351fb2b946826f910b0eec9 (diff)
Split cases and call peer_stale() individually instead of using a
conditional argument. OK tb@
-rw-r--r--usr.sbin/bgpd/rde.c7
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]);