[openssl] OpenSSL_1_1_1-stable update

kaduk at mit.edu kaduk at mit.edu
Sun May 9 16:52:15 UTC 2021


The branch OpenSSL_1_1_1-stable has been updated
       via  207b8693b0821aab356ce9dccb7f2fe86e5e035a (commit)
      from  a9e808fadcff1b1b4bf5dece753ee5eb00c9cc16 (commit)


- Log -----------------------------------------------------------------
commit 207b8693b0821aab356ce9dccb7f2fe86e5e035a
Author: David Carlier <devnexen at gmail.com>
Date:   Sat Apr 24 16:13:26 2021 +0100

    BIO_listen: disable setting ipv6_v6only on OpenBSD as it is a read only data and true
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Ben Kaduk <kaduk at mit.edu>
    (Merged from https://github.com/openssl/openssl/pull/15015)
    
    (cherry picked from commit f7f0632b01cf16efccb133e395cf115c194bd003)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bio/b_sock2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crypto/bio/b_sock2.c b/crypto/bio/b_sock2.c
index 335dfabc61..f54b550ecf 100644
--- a/crypto/bio/b_sock2.c
+++ b/crypto/bio/b_sock2.c
@@ -243,7 +243,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.


More information about the openssl-commits mailing list