BIO_lookup_ex: Retry with AI_ADDRCONFIG cleared if getaddrinfo fails
authorTomas Mraz <tmraz@fedoraproject.org>
Fri, 7 Jun 2019 09:34:42 +0000 (11:34 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 10 Jun 2019 14:29:34 +0000 (16:29 +0200)
commit81ce7cc8d6d4377c1a3aa22247e9889ef287005f
tree05762369ba7d33b8490fbb24d820a3a62453894c
parent247b8a0b7d784821590898a1f0534af92ec238eb
BIO_lookup_ex: Retry with AI_ADDRCONFIG cleared if getaddrinfo fails

The lookup for ::1 with getaddrinfo() might return error even if
the ::1 would work if AI_ADDRCONFIG flag is used.

Fixes: #9053

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9108)

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