mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 04:07:36 +00:00
lib: No need to call apply_mask 2 times
route_node_set is only called by route_node_get which calls apply_mask. There is no need to do this again. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
efb149d95b
commit
1ab21a40eb
@ -74,7 +74,6 @@ static struct route_node *route_node_set(struct route_table *table,
|
|||||||
node = route_node_new(table);
|
node = route_node_new(table);
|
||||||
|
|
||||||
prefix_copy(&node->p, prefix);
|
prefix_copy(&node->p, prefix);
|
||||||
apply_mask(&node->p);
|
|
||||||
node->table = table;
|
node->table = table;
|
||||||
|
|
||||||
inserted = hash_get(node->table->hash, node, hash_alloc_intern);
|
inserted = hash_get(node->table->hash, node, hash_alloc_intern);
|
||||||
|
Loading…
Reference in New Issue
Block a user