Skip to content

Commit

Permalink
transfer: do not clear the credentials on redirect to absolute URL
Browse files Browse the repository at this point in the history
Makes test 979 work. Regression shipped in 8.2.0 from commit
dd4d1a2

Fixes #11486
Reported-by: Cloudogu Siebels
Closes #11492
  • Loading branch information
bagder committed Jul 21, 2023
1 parent db12037 commit 90bdd25
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/transfer.c
Expand Up @@ -1558,10 +1558,6 @@ CURLcode Curl_follow(struct Curl_easy *data,
/* If this is not redirect due to a 401 or 407 response and an absolute
URL: don't allow a custom port number */
disallowport = TRUE;
if(!data->set.allow_auth_to_other_hosts) {
Curl_safefree(data->state.aptr.user);
Curl_safefree(data->state.aptr.passwd);
}
}

DEBUGASSERT(data->state.uh);
Expand Down

0 comments on commit 90bdd25

Please sign in to comment.