summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-01-16 10:37:09 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-01-16 10:37:09 +0000
commitd1906e2d0dfc9e60ce3fa3e1134b7c4b898a3523 (patch)
tree5581ff9dffc70fd71af40bb5336e4b57f423ece5
parent74aef5db2ee885d31511a773cdbe12b87824ab8c (diff)
Fix bad MP logic in the route refresh handling.
Found by and fix provided by Zenon Mousmoulas (@zmousm)
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org>
@@ -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));