mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Aggregator: fixed route source unlocking on shutdown and withdraw
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user