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:28:11 +0000 (16:28 +0200)
commit3f91ede9aea70774d9b5d509bc76d484ebaff6aa
tree5fac7521258404d4ed4786e99aa06d56b9caa35a
parent5ded1ca6dade13e093086573f4cebe400bff9f4d
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)
crypto/bio/b_addr.c