From: Donald Sharp Date: Tue, 1 Mar 2016 21:44:23 +0000 (-0500) Subject: lib: Fix crash when deleting multiple statements X-Git-Tag: frr-2.0-rc1~1086 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=37b6ab6f003624cf87fc38b912653461afd7310f;p=mirror%2Ffrr.git 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 Reviewed-by: Daniel Walton --- diff --git a/lib/plist.c b/lib/plist.c index c974a75b90..f3a5169fbe 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; }