]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Don't set IPV6_V6ONLY on OpenBSD
authorDamien Miller <djm@mindrot.org>
Tue, 8 Dec 2015 22:18:45 +0000 (09:18 +1100)
committerDamien Miller <djm@mindrot.org>
Tue, 8 Dec 2015 22:18:45 +0000 (09:18 +1100)
It isn't necessary and runs afoul of pledge(2) restrictions.

misc.c

diff --git a/misc.c b/misc.c
index 9d11d283216d601a025c68b56869918396723086..3170218e3bc62b6d4abf4081f65d5147651de7c9 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1110,7 +1110,7 @@ unix_listener(const char *path, int backlog, int unlink_first)
 void
 sock_set_v6only(int s)
 {
-#ifdef IPV6_V6ONLY
+#if defined(IPV6_V6ONLY) && !defined(__OpenBSD__)
        int on = 1;
 
        debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);