summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-17 09:43:00 +0100
committerKarolin Seeger <kseeger@samba.org>2010-02-18 12:57:23 +0100
commit6aa09416ad5f27e3db679765657b67e54dde5fd9 (patch)
tree130313a69eb78d7f7fe039a7eb256409f8c975de /lib
parent61ea3d3f897f2b6c1b893e727f57ce079782572b (diff)
downloadsamba-6aa09416ad5f27e3db679765657b67e54dde5fd9.tar.gz
socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()
metze (cherry picked from commit 0b3e950731fe72a258a631e39ca1304d54663536)
Diffstat (limited to 'lib')
-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 a188cc623c0..9d732ee6529 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;