commit | 87d29037b3f390cfb9d4e9e2aef4f0b49f98d557 | [log] [tgz] |
---|---|---|
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | Fri Aug 19 22:25:23 2011 +0400 |
committer | Dmitrij Tejblum <tejblum@yandex-team.ru> | Fri Aug 19 22:40:08 2011 +0400 |
tree | 0123fe8371a8428f0c56e6bb7c76dc8faa038a0d | |
parent | 9504a6ea39a68523733a8abb147da62deae061a9 [diff] |
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));