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:40:55 +0000 (11:40 +0200)
commit7f616a00e9232392927099dca1eca70d0d058665
treec68bbc5b6370a9ee100bb69718608b955a07d772
parent23ccf13dd68e75ba6cabbcaaeaff21d22aacb7d0
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)
crypto/bio/b_addr.c