COMSTACK: fix resolving of non-passive addresses
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Apr 2013 12:27:56 +0000 (14:27 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Apr 2013 12:27:56 +0000 (14:27 +0200)
Bug introduced in previous commit.

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);
+        *ipv6_only = -1;
     }
     if (error)
         return 0;