]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: No need to call apply_mask 2 times 1331/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 16 Oct 2017 18:47:08 +0000 (14:47 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 16 Oct 2017 18:47:08 +0000 (14:47 -0400)
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>
lib/table.c

index b0b0d24ea09556d116b032662065d8f93014ee3e..76062cd10c233d9c3506b3f856ce895ed55a64e5 100644 (file)
@@ -74,7 +74,6 @@ static struct route_node *route_node_set(struct route_table *table,
        node = route_node_new(table);
 
        prefix_copy(&node->p, prefix);
-       apply_mask(&node->p);
        node->table = table;
 
        inserted = hash_get(node->table->hash, node, hash_alloc_intern);