From e0afa6f44a77a89a543a03284c9f63af7b057c08 Mon Sep 17 00:00:00 2001 From: Dmitrij Tejblum Date: Fri, 19 Aug 2011 22:25:23 +0400 Subject: lib: fix omission in the previous commit to lib/sockopt.c * sockopt.c (setsockopt_ipv4_multicast_if): fix missed line in the previous commit. --- lib/sockopt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sockopt.c b/lib/sockopt.c index 1f9f5275..6e1feece 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -313,6 +313,7 @@ setsockopt_ipv4_multicast_if(int sock, #ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX struct ip_mreqn mreqn; + memset (&mreqn, 0, sizeof(mreqn)); mreqn.imr_ifindex = ifindex; return setsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF, (void *)&mreqn, sizeof(mreqn)); -- cgit v1.2.1