aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-06 22:32:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-07 10:47:44 +0100
commit4b786abc434d9802229d08d625acbf8cbb9d326f (patch)
treee2e4b83d540996a2b1ca04d377b94cc8ddda1eec
parent09aa807240b9dcde78a919ff712316a1daf0655e (diff)
socks5: switch state properly when the resolve is done
Regression from 4a4b63d (and #4907) Reported-by: vitaha85 on github Fixes #5053 Closes #5056
-rw-r--r--lib/socks.c4
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: