diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-09 21:16:14 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-09 21:16:14 +0200 |
commit | e4cc018527fa9ef187798b416d43253b936c5b89 (patch) | |
tree | e1a51c3b9f0bf135945be2849ed929f29d8eeabd /pimd/pim_pim.c | |
parent | vtysh json output not JSON for show ip bgp neigh json (diff) | |
download | frr-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.c | 5 |
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) { |