mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Aggregator: fixed route source unlocking on shutdown and withdraw
This commit is contained in:
parent
b958228953
commit
5f166f6782
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user