From: claudio Date: Mon, 16 Jan 2023 10:37:08 +0000 (+0000) Subject: Fix bad MP logic in the route refresh handling. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d7214ab1160e8a7b66452c950db7d582aef87f0b;p=openbsd Fix bad MP logic in the route refresh handling. Found by and fix provided by Zenon Mousmoulas (@zmousm) --- diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index c035a913eba..4cf55b2bb71 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.585 2023/01/12 17:35:51 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.586 2023/01/16 10:37:08 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -1129,7 +1129,7 @@ rde_dispatch_imsg_peer(struct rde_peer *peer, void *bula) "route refresh: bad AID %d", rr.aid); break; } - if (peer->capa.mp[rr.aid]) { + if (peer->capa.mp[rr.aid] == 0) { log_peer_warnx(&peer->conf, "route refresh: AID %s not negotiated", aid2str(rr.aid));