mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 20:04:02 +00:00
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:
parent
b915f4d509
commit
60bfa4435c
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user