diff options
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | 2011-08-19 22:25:23 +0400 |
---|---|---|
committer | Dmitrij Tejblum <tejblum@yandex-team.ru> | 2011-08-19 22:40:08 +0400 |
commit | 87d29037b3f390cfb9d4e9e2aef4f0b49f98d557 (patch) | |
tree | 0123fe8371a8428f0c56e6bb7c76dc8faa038a0d /lib/sockopt.c | |
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.
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r-- | lib/sockopt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |