[openssl] OpenSSL_1_1_1-stable update

Richard Levitte levitte at openssl.org
Wed Apr 3 23:25:16 UTC 2019

The branch OpenSSL_1_1_1-stable has been updated
       via  2423b5f07f01a7318fb48a277c1c4f372958d664 (commit)
      from  a88bafcdb7c24a14c277e47cdde014886a91d7cc (commit)

- Log -----------------------------------------------------------------
commit 2423b5f07f01a7318fb48a277c1c4f372958d664
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Thu Mar 21 13:17:29 2019 +0100

    Use AI_ADDRCONFIG hint with getaddrinfo if available.
    This prevents failure of openssl s_server socket binding to wildcard
    address on hosts with disabled IPv6.
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8550)
    (cherry picked from commit b8472b4e67ec7ad49254821f2da578ce588df4e6)


Summary of changes:
 crypto/bio/b_addr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c
index 4395ab7..f295b76 100644
--- a/crypto/bio/b_addr.c
+++ b/crypto/bio/b_addr.c
@@ -683,6 +683,12 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
         hints.ai_family = family;
         hints.ai_socktype = socktype;
         hints.ai_protocol = protocol;
+#ifdef AF_UNSPEC
+        if (family == AF_UNSPEC)
+            hints.ai_flags |= AI_ADDRCONFIG;
         if (lookup_type == BIO_LOOKUP_SERVER)
             hints.ai_flags |= AI_PASSIVE;

More information about the openssl-commits mailing list