Skip to content

Commit

Permalink
url: keep bit.user_passwd untouched when re-using connection
Browse files Browse the repository at this point in the history
While connections for HTTP don't actually have credentials (unless using
NTLM horrors), we maintain that info in there for now and just make sure
to not reset it when a connection is reused.

Fixes #8449
Reported-by: John H. Ayad
  • Loading branch information
bagder committed Feb 14, 2022
1 parent 67857c0 commit 6e150e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/url.c
Expand Up @@ -3485,7 +3485,6 @@ static void reuse_conn(struct Curl_easy *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;
if(conn->bits.user_passwd) {
/* use the new user name and password though */
Curl_safefree(conn->user);
Expand Down

0 comments on commit 6e150e6

Please sign in to comment.