summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper/socket_wrapper.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-17 09:43:00 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-17 14:13:55 +0100
commit0b3e950731fe72a258a631e39ca1304d54663536 (patch)
tree27ae736b752f56f1349163de392561579709bc0b /lib/socket_wrapper/socket_wrapper.c
parenta8cc2fa09ed43a167f62711bef363a5ac335dc78 (diff)
downloadsamba-0b3e950731fe72a258a631e39ca1304d54663536.tar.gz
samba-0b3e950731fe72a258a631e39ca1304d54663536.tar.bz2
samba-0b3e950731fe72a258a631e39ca1304d54663536.zip
socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()
metze
Diffstat (limited to 'lib/socket_wrapper/socket_wrapper.c')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index a188cc623c..9d732ee652 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -1839,6 +1839,10 @@ _PUBLIC_ int swrap_setsockopt(int s, int level, int optname, const void *o
switch (si->family) {
case AF_INET:
return 0;
+#ifdef HAVE_IPV6
+ case AF_INET6:
+ return 0;
+#endif
default:
errno = ENOPROTOOPT;
return -1;