]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix crash when deleting multiple statements
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 1 Mar 2016 21:44:23 +0000 (16:44 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 1 Mar 2016 21:55:53 +0000 (16:55 -0500)
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>
lib/plist.c

index c974a75b9079aa2ffccac403aa95ae509dbff104..f3a5169fbee85e7947f9df2d25e8b9d071d2ac2f 100644 (file)
@@ -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;
 }