summaryrefslogtreecommitdiff
path: root/lib/plist.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-09-14 13:48:31 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-09-14 13:48:31 -0400
commit6bae02045bf3713e8aeb66b8f88be701dc73d5b4 (patch)
treec452a5732db691e0ab9b88ca18d381fc2fbdd737 /lib/plist.c
parent0f926d91416be5cb874a2af4a733f116013bd93b (diff)
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>
Diffstat (limited to 'lib/plist.c')
-rw-r--r--lib/plist.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c
index d8ef9dcbd5..ff2a59ba2d 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;