summaryrefslogtreecommitdiff
path: root/lib/table.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2017-08-29 12:52:57 -0700
committerChirag Shah <chirag@cumulusnetworks.com>2017-08-29 12:52:57 -0700
commit60bfa4435c25c87b070f991ec32522440fe8efeb (patch)
treed639ebbcaa77a802eca804a3a3ae5448018dc2c1 /lib/table.c
parentb915f4d5091f708c3f261f15a97e7e54697b5b6a (diff)
lib: apply_mask to route_node_get
remove address of prefix while typecasting to apply_mask Singed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'lib/table.c')
-rw-r--r--lib/table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/table.c b/lib/table.c
index d7ecdd8d7f..b0b0d24ea0 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -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);