Quagga crash in prefix_list_apply

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>

Ticket: CM-8130
This commit is contained in:
Daniel Walton 2015-11-06 16:36:37 +00:00
parent 06370dacc0
commit 301d65c0ba

View File

@ -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)
{