From: Daniel Stenberg Date: Wed, 8 Apr 2020 14:40:51 +0000 (+0200) Subject: server/resolve: remove AI_CANONNAME to make macos tell the truth X-Git-Tag: curl-7_70_0~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb232b13deff65ab3479f4b79af2b1de373be27d;p=thirdparty%2Fcurl.git server/resolve: remove AI_CANONNAME to make macos tell the truth With this bit set, my mac successfully resolves "ip6-localhost" when in fact there is no such host known to my machine! That in turn made test 241 wrongly execute and fail. Closes #5202 --- diff --git a/tests/server/resolve.c b/tests/server/resolve.c index fe3cca1b2d..f725618795 100644 --- a/tests/server/resolve.c +++ b/tests/server/resolve.c @@ -127,7 +127,7 @@ int main(int argc, char *argv[]) memset(&hints, 0, sizeof(hints)); hints.ai_family = use_ipv6 ? PF_INET6 : PF_INET; hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_CANONNAME; + hints.ai_flags = 0; /* Use parenthesis around functions to stop them from being replaced by the macro in memdebug.h */ rc = (getaddrinfo)(host, "80", &hints, &ai);