From: Maria Matejka Date: Wed, 1 Nov 2023 13:30:46 +0000 (+0100) Subject: Aggregator: fixed route source unlocking on shutdown and withdraw X-Git-Tag: v3.0.0~360^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f166f67828fb4ebdada5868ac5a51cb9ae2ebef;p=thirdparty%2Fbird.git Aggregator: fixed route source unlocking on shutdown and withdraw --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 03d7bbf9b..b7b565178 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -75,6 +75,7 @@ aggregator_bucket_update(struct aggregator_proto *p, struct aggregator_bucket *b if (!bucket->rte) { rte_update2(p->dst, net->n.addr, NULL, bucket->last_src); + rt_unlock_source(bucket->last_src); bucket->last_src = NULL; return; } @@ -412,6 +413,9 @@ aggregator_shutdown(struct proto *P) sl_free(arte); } + if (b->last_src) + rt_unlock_source(b->last_src); + ASSERT_DIE(b->count == 0); HASH_REMOVE(p->buckets, AGGR_BUCK, b); sl_free(b);