gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 171/256: http-proxy: when not doing CONNECT, that p


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 171/256: http-proxy: when not doing CONNECT, that phase is done immediately
Date: Fri, 06 Oct 2017 19:44:22 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 9ef50ee0a436aeaa05adc9d78fda57e3ef53233e
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 4 23:43:05 2017 +0200

    http-proxy: when not doing CONNECT, that phase is done immediately
    
    `conn->connect_state` is NULL when doing a regular non-CONNECT request
    over the proxy and should therefor be considered complete at once.
    
    Fixes #1853
    Closes #1862
    Reported-by: Lawrence Wagerfield
---
 lib/http_proxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 7b2760446..77532e38d 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -137,7 +137,7 @@ CURLcode Curl_proxy_connect(struct connectdata *conn, int 
sockindex)
 
 bool Curl_connect_complete(struct connectdata *conn)
 {
-  return conn->connect_state &&
+  return !conn->connect_state ||
     (conn->connect_state->tunnel_state == TUNNEL_COMPLETE);
 }
 

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



reply via email to

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