commit | e0afa6f44a77a89a543a03284c9f63af7b057c08 | [log] [tgz] |
---|---|---|
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | Fri Aug 19 22:25:23 2011 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Tue Sep 27 21:37:46 2011 +0400 |
tree | cbda897188f7280c72f822b47802d0e641c9cdb8 | |
parent | 69bf3a39931ce61a92fb04d8888b4655fd5620a2 [diff] [blame] |
lib: fix omission in the previous commit to lib/sockopt.c * sockopt.c (setsockopt_ipv4_multicast_if): fix missed line in the previous commit.
diff --git a/lib/sockopt.c b/lib/sockopt.c index 1f9f527..6e1feec 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c
@@ -313,6 +313,7 @@ #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));