COMSTACK: fix resolving of non-passive addresses
[yaz-moved-to-github.git] / src / tcpip.c
index 41c0725..32b1ec1 100644 (file)
@@ -388,6 +388,7 @@ struct addrinfo *tcpip_getaddrinfo(const char *str, const char *port,
     else
     {
         error = getaddrinfo(host, port, &hints, &res);
     else
     {
         error = getaddrinfo(host, port, &hints, &res);
+        *ipv6_only = -1;
     }
     if (error)
         return 0;
     }
     if (error)
         return 0;