From: Ben Laurie Date: Sat, 25 Jun 2016 16:42:14 +0000 (+0100) Subject: Some interfaces may have IPv6 addresses even if an IPv6 address is not X-Git-Tag: OpenSSL_1_1_0-pre6~316 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cbddeebe49ae024e8debc9ae4f90f22ee15a69e2;p=oweals%2Fopenssl.git Some interfaces may have IPv6 addresses even if an IPv6 address is not "configured on the local system". Whatever that means. Example that is biting me is loopback has ::1 as an address, but the network interface is v4 only. Reviewed-by: Richard Levitte --- diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index e5352db756..b77fd4b1a0 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -666,9 +666,6 @@ int BIO_lookup(const char *host, const char *service, struct addrinfo hints; memset(&hints, 0, sizeof hints); -# ifdef AI_ADDRCONFIG - hints.ai_flags = AI_ADDRCONFIG; -# endif hints.ai_family = family; hints.ai_socktype = socktype;