]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: apply_mask to route_node_get
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 29 Aug 2017 19:52:57 +0000 (12:52 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 29 Aug 2017 19:52:57 +0000 (12:52 -0700)
remove address of prefix while typecasting to apply_mask

Singed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
lib/table.c

index d7ecdd8d7fb95ed91ba2655b7cdb6aa8fd1c6591..b0b0d24ea09556d116b032662065d8f93014ee3e 100644 (file)
@@ -281,7 +281,7 @@ struct route_node *route_node_get(struct route_table *const table,
        u_char prefixlen = p->prefixlen;
        const u_char *prefix = &p->u.prefix;
 
-       apply_mask((struct prefix *)&p);
+       apply_mask((struct prefix *)p);
        node = hash_get(table->hash, (void *)p, NULL);
        if (node && node->info)
                return route_lock_node(node);