From dcd13df5133e2388786a7fd14f371abf79fb9e5b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 30 Dec 2020 07:00:55 +0000 Subject: RB_REMOVE from the correct tree. Dumb copy paste bug introduced by last commit. Noticed by procter@ --- usr.sbin/bgpd/bgpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpd/bgpd.c') diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 264202b65f8..0d9fdb7463f 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.231 2020/12/29 15:30:34 claudio Exp $ */ +/* $OpenBSD: bgpd.c,v 1.232 2020/12/30 07:00:54 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -580,7 +580,7 @@ send_config(struct bgpd_config *conf) ps->name, sizeof(ps->name)) == -1) return (-1); RB_FOREACH_SAFE(roa, roa_tree, &ps->roaitems, nroa) { - RB_REMOVE(roa_tree, &conf->roa, roa); + RB_REMOVE(roa_tree, &ps->roaitems, roa); if (imsg_compose(ibuf_rde, IMSG_RECONF_ROA_ITEM, 0, 0, -1, roa, sizeof(*roa)) == -1) return (-1); -- cgit v1.2.3