From 37b6ab6f003624cf87fc38b912653461afd7310f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 1 Mar 2016 16:44:23 -0500 Subject: [PATCH] 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 --- lib/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5