]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Olaf fixed a leftover problem with the CONNECT fix of his that would leave a
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Nov 2006 14:07:02 +0000 (14:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Nov 2006 14:07:02 +0000 (14:07 +0000)
wrong error message in the error message buffer.

CHANGES
lib/url.c

diff --git a/CHANGES b/CHANGES
index d078ccf3221562fd6cd7a0350fa33461d2278af9..70c50b897752ac1ee4c8840a7e0be8101c1e25ce 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Daniel (7 November 2006)
+- Olaf fixed a leftover problem with the CONNECT fix of his that would leave a
+  wrong error message in the error message buffer.
+
 Daniel (3 November 2006)
 - Olaf Stueben provided a patch that I edited slightly. It fixes the notorious
   KNOWN_BUGS #25, which happens when a proxy closes the connection when
index 2791c718c21bd17feaa18db8263204948f445474..c5ce746c0e9a4dcfcaaa1da4d6bccd32f5633346 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3978,8 +3978,13 @@ static CURLcode SetupConnection(struct connectdata *conn,
       /* if the connection was closed by the server while exchanging
          authentication informations, retry with the new set
          authentication information */
-      if(conn->bits.proxy_connect_closed)
+      if(conn->bits.proxy_connect_closed) {
+        /* reset the error buffer */
+        if (data->set.errorbuffer)
+          data->set.errorbuffer[0] = '\0';
+        data->state.errorbuf = FALSE;
         continue;
+      }
 
       if(CURLE_OK != result)
         return result;