mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58:48 -05:00
socks5: switch state properly when the resolve is done
Regression from 4a4b63d
(and #4907)
Reported-by: vitaha85 on github
Fixes #5053
Closes #5056
This commit is contained in:
parent
09aa807240
commit
4b786abc43
@ -763,8 +763,8 @@ CURLcode Curl_SOCKS5(const char *proxy_user,
|
|||||||
|
|
||||||
if(!dns) {
|
if(!dns) {
|
||||||
result = Curl_resolv_check(data->conn, &dns);
|
result = Curl_resolv_check(data->conn, &dns);
|
||||||
/* stay in the state or error out */
|
if(!dns)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
CONNECT_RESOLVED:
|
CONNECT_RESOLVED:
|
||||||
|
Loading…
Reference in New Issue
Block a user