diff options
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | 2011-08-19 22:25:23 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-09-27 21:37:46 +0400 |
commit | e0afa6f44a77a89a543a03284c9f63af7b057c08 (patch) | |
tree | cbda897188f7280c72f822b47802d0e641c9cdb8 /lib/sockopt.c | |
parent | 69bf3a39931ce61a92fb04d8888b4655fd5620a2 (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)); |