gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 252/282: socks5: switch state properly when the resolve is done


From: gnunet
Subject: [gnurl] 252/282: socks5: switch state properly when the resolve is done
Date: Wed, 01 Apr 2020 14:31:57 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 4b786abc434d9802229d08d625acbf8cbb9d326f
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Mar 6 22:32:38 2020 +0100

    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:

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]