]> granicus.if.org Git - curl/commitdiff
Proxy username and password on persistant connections could easily get
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Jan 2004 08:36:03 +0000 (08:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Jan 2004 08:36:03 +0000 (08:36 +0000)
messed up. Vincent Bronner detected this.

lib/url.c

index d31417b0a819feb1407d4216d4cb90241927eba9..022c151c8ea6c73dec5c5ca8cc4a701a0ba483ca 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2853,7 +2853,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
     /* get the user+password information from the old_conn struct since it may
      * be new for this request even when we re-use an existing connection */
     conn->bits.user_passwd = old_conn->bits.user_passwd;
-    conn->bits.proxy_user_passwd = conn->bits.proxy_user_passwd;
+    conn->bits.proxy_user_passwd = old_conn->bits.proxy_user_passwd;
 
     /* If we speak over a proxy, we need to copy the host name too, as it
        might be another remote host even when re-using a connection */