summaryrefslogtreecommitdiffstats
path: root/lib/plist.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-03-01 22:44:23 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-01 22:55:53 +0100
commit37b6ab6f003624cf87fc38b912653461afd7310f (patch)
treeab2e855794d4c8c311334ffa924d8e5fe34ee038 /lib/plist.c
parentospfd: Fix MI redistribution (diff)
downloadfrr-37b6ab6f003624cf87fc38b912653461afd7310f.tar.xz
frr-37b6ab6f003624cf87fc38b912653461afd7310f.zip
lib: Fix crash when deleting multiple statements
When deciding if we should delete a table we were only looking at the part of the data structures associated with the table to see if it was empty. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/plist.c')
-rw-r--r--lib/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c
index c974a75b9..f3a5169fb 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -512,7 +512,7 @@ trie_table_empty (struct pltrie_table *table)
{
size_t i;
for (i = 0; i < PLC_LEN; i++)
- if (table->entries[i].next_table || table->entries[i].final_chain)
+ if (table->entries[i].next_table || table->entries[i].up_chain)
return 0;
return 1;
}