From: Chirag Shah Date: Tue, 29 Aug 2017 19:52:57 +0000 (-0700) Subject: lib: apply_mask to route_node_get X-Git-Tag: frr-4.0-dev~339^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=60bfa4435c25c87b070f991ec32522440fe8efeb;p=mirror%2Ffrr.git lib: apply_mask to route_node_get remove address of prefix while typecasting to apply_mask Singed-off-by: Chirag Shah --- 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);