summaryrefslogtreecommitdiffstats
path: root/pimd/pim_pim.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_pim.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_pim.c')
-rw-r--r--pimd/pim_pim.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 5912709fe..a492d57db 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -481,14 +481,9 @@ int pim_msg_send(int fd,
*(uint16_t *) PIM_MSG_HDR_OFFSET_CHECKSUM(pim_msg));
}
-#if 0
memset(&to, 0, sizeof(to));
-#endif
to.sin_family = AF_INET;
to.sin_addr = dst;
-#if 0
- to.sin_port = htons(0);
-#endif
tolen = sizeof(to);
if (PIM_DEBUG_PIM_PACKETDUMP_SEND) {