lib: apply_mask to route_node_get

remove address of prefix while typecasting to apply_mask

Singed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2017-08-29 12:52:57 -07:00
parent b915f4d509
commit 60bfa4435c

View 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);