From 60bfa4435c25c87b070f991ec32522440fe8efeb Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Tue, 29 Aug 2017 12:52:57 -0700 Subject: [PATCH] lib: apply_mask to route_node_get remove address of prefix while typecasting to apply_mask Singed-off-by: Chirag Shah --- lib/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/table.c b/lib/table.c index d7ecdd8d7..b0b0d24ea 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); -- 2.39.2