diff options
author | David Carlier <devnexen@gmail.com> | 2021-04-24 16:13:26 +0100 |
---|---|---|
committer | Benjamin Kaduk <bkaduk@akamai.com> | 2021-05-09 09:31:35 -0700 |
commit | f7f0632b01cf16efccb133e395cf115c194bd003 (patch) | |
tree | 271981767387a7ccd531e399931e6f38aca6e3ac /crypto/bio | |
parent | 10646160125ac1328d892f1dd27f2847892d33c5 (diff) |
BIO_listen: disable setting ipv6_v6only on OpenBSD as it is a read only data and true
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/15015)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_sock2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bio/b_sock2.c b/crypto/bio/b_sock2.c index 0446e7fd8d..f13f20148b 100644 --- a/crypto/bio/b_sock2.c +++ b/crypto/bio/b_sock2.c @@ -264,7 +264,8 @@ int BIO_listen(int sock, const BIO_ADDR *addr, int options) } } -# ifdef IPV6_V6ONLY + /* On OpenBSD it is always ipv6 only with ipv6 sockets thus read-only */ +# if defined(IPV6_V6ONLY) && !defined(__OpenBSD__) if (BIO_ADDR_family(addr) == AF_INET6) { /* * Note: Windows default of IPV6_V6ONLY is ON, and Linux is OFF. |