summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmp.c
diff options
context:
space:
mode:
authormobash-rasool <59957237+mobash-rasool@users.noreply.github.com>2022-04-06 00:37:30 +0200
committerGitHub <noreply@github.com>2022-04-06 00:37:30 +0200
commit25ddb686ca22b6ecbb82fe80a69cf7e71c051d6e (patch)
treef98abb8f20ac9afe1497ced14c016763052ccf8c /pimd/pim_igmp.c
parentMerge pull request #10966 from opensourcerouting/fix/memory_leak_rpki (diff)
parentpimd: Replace ALL_LIST_ELEMENTS_RO to ALL_LIST_ELEMENTS group_list iteration (diff)
downloadfrr-25ddb686ca22b6ecbb82fe80a69cf7e71c051d6e.tar.xz
frr-25ddb686ca22b6ecbb82fe80a69cf7e71c051d6e.zip
Merge pull request #10965 from opensourcerouting/fix/pim_igmp_group_delete
pimd: Replace ALL_LIST_ELEMENTS_RO to ALL_LIST_ELEMENTS group_list it…
Diffstat (limited to 'pimd/pim_igmp.c')
-rw-r--r--pimd/pim_igmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index 6dea9f38f..08cc0b8fc 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -118,7 +118,7 @@ void igmp_source_forward_reevaluate_all(struct pim_instance *pim)
FOR_ALL_INTERFACES (pim->vrf, ifp) {
struct pim_interface *pim_ifp = ifp->info;
- struct listnode *grpnode;
+ struct listnode *grpnode, *grp_nextnode;
struct gm_group *grp;
struct pim_ifchannel *ch, *ch_temp;
@@ -126,8 +126,8 @@ void igmp_source_forward_reevaluate_all(struct pim_instance *pim)
continue;
/* scan igmp groups */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->gm_group_list, grpnode,
- grp)) {
+ for (ALL_LIST_ELEMENTS(pim_ifp->gm_group_list, grpnode,
+ grp_nextnode, grp)) {
struct listnode *srcnode;
struct gm_source *src;
int is_grp_ssm;