Skip to content

Commit

Permalink
lib: Fix skip of every other plist deletion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed Sep 14, 2022
1 parent 0f926d9 commit 6bae020
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6bae020

Please sign in to comment.