mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
socks: check for DNS entries with the right port number
The resolve call is done with the right port number, but the subsequent check used the wrong one, which then could find a previous resolve which would return and leave the fresh resolve "incomplete" and leaking memory. Fixes #6247 Closes #6253
This commit is contained in:
parent
d6ced230fe
commit
0b60d3685e
@ -771,7 +771,7 @@ CURLproxycode Curl_SOCKS5(const char *proxy_user,
|
|||||||
|
|
||||||
case CONNECT_RESOLVING:
|
case CONNECT_RESOLVING:
|
||||||
/* check if we have the name resolved by now */
|
/* 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) {
|
if(dns) {
|
||||||
#ifdef CURLRES_ASYNCH
|
#ifdef CURLRES_ASYNCH
|
||||||
|
Loading…
Reference in New Issue
Block a user