From: claudio Date: Tue, 23 Jan 2024 14:39:10 +0000 (+0000) Subject: Split cases and call peer_stale() individually instead of using a X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=99074c6d91b2517ea118191b22bfd5e14b51516c;p=openbsd Split cases and call peer_stale() individually instead of using a conditional argument. OK tb@ --- 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 @@ -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]);