diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index ad89cc08..5bd89a65 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -166,12 +166,13 @@ trie_insert_prefix(const union net_addr_union *addr, struct trie_node * const ro { struct trie_node *new = new_node(trie_slab); new->parent = node; - new->bucket = bucket; node->child[bit] = new; } node = node->child[bit]; } + + node->bucket = bucket; } static struct aggregator_bucket *