diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-06 22:32:38 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-06 22:34:01 +0100 |
commit | a8eb3deeb3747d093a2be4c6aca31042385929b9 (patch) | |
tree | 098f208375a086df226f61e6a631c39c03c84699 | |
parent | e54b1885d19dee5ed04761295020a0a84b8296ca (diff) | |
download | curl-bagder/socks5-resolve.tar.gz |
socks5: switch state properly when the resolve is donebagder/socks5-resolve
Regression from 4a4b63d (and #4907)
Reported-by: vitaha85 on github
Fixes #5053
-rw-r--r-- | lib/socks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socks.c b/lib/socks.c index 0fb97e1e5..754726f6f 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -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: |