http_aws_sigv4: cannot be used for proxy

Make sure it is never attempted.

Reported-by: Philippe Antoine
Closes #16569
This commit is contained in:
Daniel Stenberg 2025-03-05 10:55:56 +01:00
parent 34cbf95267
commit c4cd0ae9ba
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 5 additions and 7 deletions

View file

@ -634,9 +634,10 @@ output_auth_headers(struct Curl_easy *data,
(void)path;
#endif
#ifndef CURL_DISABLE_AWS
if(authstatus->picked == CURLAUTH_AWS_SIGV4) {
if((authstatus->picked == CURLAUTH_AWS_SIGV4) && !proxy) {
/* this method is never for proxy */
auth = "AWS_SIGV4";
result = Curl_output_aws_sigv4(data, proxy);
result = Curl_output_aws_sigv4(data);
if(result)
return result;
}