mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18: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,7 +763,7 @@ 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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user