summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-09-14 19:48:31 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-09-14 19:48:31 +0200
commit6bae02045bf3713e8aeb66b8f88be701dc73d5b4 (patch)
treec452a5732db691e0ab9b88ca18d381fc2fbdd737
parentMerge pull request #11946 from AbhishekNR/debug_igmp_gm (diff)
downloadfrr-6bae02045bf3713e8aeb66b8f88be701dc73d5b4.tar.xz
frr-6bae02045bf3713e8aeb66b8f88be701dc73d5b4.zip
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>
-rw-r--r--lib/plist.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c
index d8ef9dcbd..ff2a59ba2 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;