summaryrefslogtreecommitdiff
path: root/lib/plist.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-11-09 17:04:20 -0800
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-11-09 17:04:20 -0800
commit30e129bd4083ff9fe743c1be8cc45da6d6232025 (patch)
treeee4dae9c6c0f7f555bc69610e4dec1877f56b72c /lib/plist.c
parent6f20b80d8810724818ffe02963652a7e1eda3f89 (diff)
parenta81bede2d5c93c3108fbdcf2ea07aafb1001c06a (diff)
Merge branch 'cmaster' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster
Diffstat (limited to 'lib/plist.c')
-rw-r--r--lib/plist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c
index 63fd94c422..c974a75b90 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -743,7 +743,7 @@ prefix_list_apply (struct prefix_list *plist, void *object)
struct prefix *p = (struct prefix *) object;
uint8_t *byte = &p->u.prefix;
- size_t depth = plist->master->trie_depth;
+ size_t depth;
size_t validbits = p->prefixlen;
struct pltrie_table *table;
@@ -753,6 +753,7 @@ prefix_list_apply (struct prefix_list *plist, void *object)
if (plist->count == 0)
return PREFIX_PERMIT;
+ depth = plist->master->trie_depth;
table = plist->trie;
while (1)
{