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 23:25:08 +0000 (01:25 +0200)
commit2423b5f07f01a7318fb48a277c1c4f372958d664
tree5612cda64fc0dfc592f7c2eb6b82a8e5f829c5ef
parenta88bafcdb7c24a14c277e47cdde014886a91d7cc
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)

(cherry picked from commit b8472b4e67ec7ad49254821f2da578ce588df4e6)
crypto/bio/b_addr.c