summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-04-21 03:01:33 -0700
committerMobashshera Rasool <mrasool@vmware.com>2022-04-21 05:54:40 -0700
commit14c7ac504fef5193383611cf1e3d162e7d29c636 (patch)
tree0f13b72a8ed0b39e67367064b9b979a1b7a316db
parent60d296518b48c75ab4d21ed696e970b8d987a5ac (diff)
pimd: Set new to true in igmp_get_source_by_addr api
5421bf8 commit forgot to set the parameter "new" to true when a new source is created, have fixed it. igmp_get_source_by_addr api is currently setting the parameter "new" to false always. This is not right. The caller apis are using this field to decide and based on that take actions to create timers, etc. Its need to be set to true when a new source is created. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
-rw-r--r--pimd/pim_igmpv3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c
index 933b43cd98..5d46383a8e 100644
--- a/pimd/pim_igmpv3.c
+++ b/pimd/pim_igmpv3.c
@@ -465,6 +465,9 @@ struct gm_source *igmp_get_source_by_addr(struct gm_group *group,
src = XCALLOC(MTYPE_PIM_IGMP_GROUP_SOURCE, sizeof(*src));
+ if (new)
+ *new = true;
+
src->t_source_timer = NULL;
src->source_group = group; /* back pointer */
src->source_addr = src_addr;