mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:04:26 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue