summaryrefslogtreecommitdiff
path: root/lib/table.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-09-05 18:15:51 +0200
committerGitHub <noreply@github.com>2017-09-05 18:15:51 +0200
commit981283aa726447127a15bf3d4e65a4238b977e28 (patch)
treee27cae86e1110932c8f9ec6f7adfc3ff199aabfb /lib/table.c
parenteb1e453f9a4ff7c1c805b2f5ea90df328b027e39 (diff)
parent60bfa4435c25c87b070f991ec32522440fe8efeb (diff)
Merge pull request #1058 from chiragshah6/mdev
ospfd: fix route_node_get
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 67cf6aeec3..b0b0d24ea0 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);