summaryrefslogtreecommitdiffstats
path: root/lib/table.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2017-08-28 16:52:50 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2017-08-28 16:52:50 +0200
commitb915f4d5091f708c3f261f15a97e7e54697b5b6a (patch)
treee438f82052c5a003e8ece46b86a1701e3915926e /lib/table.c
parentospfd: fix route_node_get (diff)
downloadfrr-b915f4d5091f708c3f261f15a97e7e54697b5b6a.tar.xz
frr-b915f4d5091f708c3f261f15a97e7e54697b5b6a.zip
lib: call apply_mask in route_node_get
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'lib/table.c')
-rw-r--r--lib/table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/table.c b/lib/table.c
index 67cf6aeec..d7ecdd8d7 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -281,6 +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);
node = hash_get(table->hash, (void *)p, NULL);
if (node && node->info)
return route_lock_node(node);