]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Remove assertions
authorIgor Putovny <igor.putovny@nic.cz>
Thu, 6 Mar 2025 14:44:48 +0000 (15:44 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 6 Mar 2025 14:44:48 +0000 (15:44 +0100)
If prefix node was pruned from the trie, these assertions may not hold
for returned node

proto/aggregator/trie.c

index 22cfbfeaa15f91fdbe00ad150badd5f39ae78fc2..49c4c605048de0be4385d688bf932d4bc2090306 100644 (file)
@@ -956,10 +956,7 @@ aggregator_recalculate(struct aggregator_proto *p, struct aggregator_route *old,
     const u32 pxlen = net_pxlen(addr);
 
     updated_node = aggregator_trie_remove_prefix(p, prefix, pxlen);
-
     ASSERT_DIE(updated_node != NULL);
-    ASSERT_DIE(updated_node->px_origin == FILLER);
-    ASSERT_DIE(updated_node->original_bucket == NULL);
   }
   else /* Announce or update */
   {