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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-09-14 13:48:31 -04:00
parent 0f926d9141
commit 6bae02045b

View File

@ -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;