From 6bae02045bf3713e8aeb66b8f88be701dc73d5b4 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 14 Sep 2022 13:48:31 -0400 Subject: [PATCH] lib: Fix skip of every other plist deletion When bulk deleting prefix lists on shutdown the code was calling plist_delete, which removed the item from the master->str list, and then popping the next item on the list and just dropping it on the floor. The pop is not needed. Signed-off-by: Donald Sharp --- lib/plist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/plist.c b/lib/plist.c index d8ef9dcbd5d1..ff2a59ba2dfd 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -1570,7 +1570,6 @@ static void prefix_list_reset_afi(afi_t afi, int orf) while ((plist = plist_first(&master->str))) { prefix_list_delete(plist); - plist_pop(&master->str); } master->recent = NULL;