diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-09 17:04:20 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-09 17:04:20 -0800 |
| commit | 30e129bd4083ff9fe743c1be8cc45da6d6232025 (patch) | |
| tree | ee4dae9c6c0f7f555bc69610e4dec1877f56b72c /lib/plist.c | |
| parent | 6f20b80d8810724818ffe02963652a7e1eda3f89 (diff) | |
| parent | a81bede2d5c93c3108fbdcf2ea07aafb1001c06a (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.c | 3 |
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) { |
