diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-12-30 07:00:55 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-12-30 07:00:55 +0000 |
commit | dcd13df5133e2388786a7fd14f371abf79fb9e5b (patch) | |
tree | 6983e080d495196b92b4f4191ed8d959001badbd /usr.sbin/bgpd/bgpd.c | |
parent | 39f39fdbfb82696a9b8a04f41c139f91c64b1b50 (diff) |
RB_REMOVE from the correct tree. Dumb copy paste bug introduced by last commit.
Noticed by procter@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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); |