BIO_lookup_ex: Do not retry on EAI_MEMORY
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 12 Aug 2019 14:43:59 +0000 (16:43 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 13 Aug 2019 09:44:45 +0000 (11:44 +0200)
commit8ab99435c0c6e993af090759fea8879bcabaae6c
tree038cbee4f310324d6df9ea575bb5be765ccbb434
parent63be1415bf6c3b73bb0a4971e1ffeb5923269b7c
BIO_lookup_ex: Do not retry on EAI_MEMORY

We should not retry on EAI_MEMORY as that error is most probably
fatal and not depending on AI_ADDRCONFIG hint.

Also report the error from the first call if the second call fails
as that one would be most probably the more interesting one.

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 91cb81d40a8102c3d8667629661be8d6937db82b)
crypto/bio/b_addr.c