summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmpv3.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-06-09 21:16:14 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-09 21:16:14 +0200
commite4cc018527fa9ef187798b416d43253b936c5b89 (patch)
treee1a51c3b9f0bf135945be2849ed929f29d8eeabd /pimd/pim_igmpv3.c
parentvtysh json output not JSON for show ip bgp neigh json (diff)
downloadfrr-e4cc018527fa9ef187798b416d43253b936c5b89.tar.xz
frr-e4cc018527fa9ef187798b416d43253b936c5b89.zip
pimd: Fix of using uninitialized Memory
Valgrind is reporting that pimd is using uninitialized memory for comparisons. This commit addresses the issues found there. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_igmpv3.c')
-rw-r--r--pimd/pim_igmpv3.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c
index 8a32a3272..180de9d71 100644
--- a/pimd/pim_igmpv3.c
+++ b/pimd/pim_igmpv3.c
@@ -1661,14 +1661,9 @@ void pim_igmp_send_membership_query(struct igmp_group *group,
querier_query_interval, qqic, checksum);
}
-#if 0
memset(&to, 0, sizeof(to));
-#endif
to.sin_family = AF_INET;
to.sin_addr = dst_addr;
-#if 0
- to.sin_port = htons(0);
-#endif
tolen = sizeof(to);
sent = sendto(fd, query_buf, msg_size, MSG_DONTWAIT,