[openssl] master update
beldmit at gmail.com
beldmit at gmail.com
Sat Jul 10 15:59:49 UTC 2021
The branch master has been updated
via 15729bef385211bc2a0497e2d53a45c45d677d2c (commit)
from 6bfd3e51c04faa97ed98f38e35bd9bb5294b9070 (commit)
- Log -----------------------------------------------------------------
commit 15729bef385211bc2a0497e2d53a45c45d677d2c
Author: Daiki Ueno <dueno at redhat.com>
Date: Thu Jul 8 19:22:36 2021 +0200
BIO_lookup_ex: use AI_ADDRCONFIG only if explicit host name is given
The flag only affects which record types are queried via DNS (A or
AAAA, or both). When node is NULL and AF_UNSPEC is used, it prevents
getaddrinfo returning the right address associated with the loopback
interface.
Signed-off-by: Daiki Ueno <dueno at redhat.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16033)
-----------------------------------------------------------------------
Summary of changes:
crypto/bio/bio_addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bio/bio_addr.c b/crypto/bio/bio_addr.c
index 0efbc3cb44..d18c849ade 100644
--- a/crypto/bio/bio_addr.c
+++ b/crypto/bio/bio_addr.c
@@ -696,7 +696,7 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
hints.ai_protocol = protocol;
# ifdef AI_ADDRCONFIG
# ifdef AF_UNSPEC
- if (family == AF_UNSPEC)
+ if (host != NULL && family == AF_UNSPEC)
# endif
hints.ai_flags |= AI_ADDRCONFIG;
# endif
More information about the openssl-commits
mailing list