aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-23 08:36:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-23 08:36:03 +0000
commit334c3df09d46dcd167df0d3046b45e4b47fb1328 (patch)
tree293f87ac2dc813e54f6af2129cac2696c8efa4c5
parent4120b7b0c0f37f6227a1cfc1373ec550ef47f6b2 (diff)
Proxy username and password on persistant connections could easily get
messed up. Vincent Bronner detected this.
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index d31417b0a..022c151c8 100644
--- 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 */