From: Damien Miller Date: Tue, 8 Dec 2015 22:18:45 +0000 (+1100) Subject: Don't set IPV6_V6ONLY on OpenBSD X-Git-Tag: V_7_2_P1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86a3ba7af160c13496102aed861ae48a4297072;p=thirdparty%2Fopenssh-portable.git Don't set IPV6_V6ONLY on OpenBSD It isn't necessary and runs afoul of pledge(2) restrictions. --- diff --git a/misc.c b/misc.c index 9d11d2832..3170218e3 100644 --- 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);