diff options
-rw-r--r-- | lib/socks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c index d9f67ec57..a2d1e621f 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -771,7 +771,7 @@ CURLproxycode Curl_SOCKS5(const char *proxy_user, case CONNECT_RESOLVING: /* check if we have the name resolved by now */ - dns = Curl_fetch_addr(conn, hostname, (int)conn->port); + dns = Curl_fetch_addr(conn, hostname, remote_port); if(dns) { #ifdef CURLRES_ASYNCH |