diff options
author | Mobashshera Rasool <mrasool@vmware.com> | 2022-04-21 12:01:33 +0200 |
---|---|---|
committer | Mobashshera Rasool <mrasool@vmware.com> | 2022-04-21 14:54:40 +0200 |
commit | 14c7ac504fef5193383611cf1e3d162e7d29c636 (patch) | |
tree | 0f13b72a8ed0b39e67367064b9b979a1b7a316db /pimd/pim_igmpv3.c | |
parent | Merge pull request #11063 from opensourcerouting/feature/usage_frrinit_more (diff) | |
download | frr-14c7ac504fef5193383611cf1e3d162e7d29c636.tar.xz frr-14c7ac504fef5193383611cf1e3d162e7d29c636.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_igmpv3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index 933b43cd9..5d46383a8 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; |