BIO_lookup_ex: Always retry the lookup on failure with AI_NUMERICHOST set
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 5 Aug 2019 17:11:07 +0000 (19:11 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 13 Aug 2019 09:44:15 +0000 (11:44 +0200)
commit63be1415bf6c3b73bb0a4971e1ffeb5923269b7c
treed7138cbf824446b25329ba65a683c860113e2b32
parente17a712e763701e05f3e6965498e2697c7d1e30e
BIO_lookup_ex: Always retry the lookup on failure with AI_NUMERICHOST set

Do not try to discern the error return value on
getaddrinfo() failure but when retrying set the AI_NUMERICHOST
to avoid DNS lookups.

Fixes: #9053

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9535)

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