mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -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) {
|
||||
result = Curl_resolv_check(data->conn, &dns);
|
||||
/* stay in the state or error out */
|
||||
return result;
|
||||
if(!dns)
|
||||
return result;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
CONNECT_RESOLVED:
|
||||
|
Loading…
Reference in New Issue
Block a user