summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);