1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04: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:
Daniel Stenberg 2020-03-06 22:32:38 +01:00
parent 09aa807240
commit 4b786abc43
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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: