]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
server/resolve: remove AI_CANONNAME to make macos tell the truth
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Apr 2020 14:40:51 +0000 (16:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Apr 2020 07:45:58 +0000 (09:45 +0200)
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

tests/server/resolve.c

index fe3cca1b2d06cecfca4757c42e27c365ebc288cd..f725618795cce7a21d976b38fcf1f368b315c820 100644 (file)
@@ -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);