From 4b786abc434d9802229d08d625acbf8cbb9d326f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Mar 2020 22:32:38 +0100 Subject: socks5: switch state properly when the resolve is done Regression from 4a4b63d (and #4907) Reported-by: vitaha85 on github Fixes #5053 Closes #5056 --- lib/socks.c | 4 ++-- 1 file 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: -- cgit v1.2.1