mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Proxy username and password on persistant connections could easily get
messed up. Vincent Bronner detected this.
This commit is contained in:
parent
4120b7b0c0
commit
334c3df09d
@ -2853,7 +2853,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||||||
/* get the user+password information from the old_conn struct since it may
|
/* 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 */
|
* be new for this request even when we re-use an existing connection */
|
||||||
conn->bits.user_passwd = old_conn->bits.user_passwd;
|
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
|
/* 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 */
|
might be another remote host even when re-using a connection */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user