From e4cc018527fa9ef187798b416d43253b936c5b89 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 9 Jun 2016 15:16:14 -0400 Subject: 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 --- pimd/pim_pim.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pimd/pim_pim.c') 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) { -- cgit v1.2.3