From d5bb65a2837bd64618badd814ae2a6aab08984a3 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 15 Jun 2022 15:06:25 +0000 Subject: [PATCH] Need to continue to the next message for route messages with errors or which are not marked RTF_DONE. Possible fix for bgpd exiting for no obvious reason. Found with help from florian@ OK florian@ --- usr.sbin/bgpd/kroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index ec137f63cba..0752848d860 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.256 2022/06/15 10:10:03 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.257 2022/06/15 15:06:25 claudio Exp $ */ /* * Copyright (c) 2022 Claudio Jeker @@ -3340,7 +3340,7 @@ dispatch_rtmsg(void) /* failed attempts */ if (rtm->rtm_errno || !(rtm->rtm_flags & RTF_DONE)) - return (-1); + continue; if ((kt = ktable_get(rtm->rtm_tableid)) == NULL) continue; -- 2.20.1