Use AI_ADDRCONFIG hint with getaddrinfo if available.
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 21 Mar 2019 12:17:29 +0000 (13:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 3 Apr 2019 20:56:54 +0000 (22:56 +0200)
commitb8472b4e67ec7ad49254821f2da578ce588df4e6
treec0d13da7f0e5ba49f02da8ac39918be1febaf638
parent0770c882150ea0159cc2b0a2cea2e8ed8442f36f
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@roeckx.be>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8550)
crypto/bio/b_addr.c