mirror of
https://github.com/curl/curl.git
synced 2026-05-16 17:06:21 +03:00
creds: create on service name only
Fix creation of creds object for transfer when only a sasl service
name is configured by the application.
Follow-up to 5e99b73cf4
Closes #21591
This commit is contained in:
parent
b079595f2e
commit
7f7e4e3e68
1 changed files with 2 additions and 1 deletions
|
|
@ -1436,8 +1436,9 @@ static CURLcode url_set_data_creds(struct Curl_easy *data,
|
|||
Curl_creds_unlink(&data->state.creds);
|
||||
if((data->set.str[STRING_USERNAME] ||
|
||||
data->set.str[STRING_PASSWORD] ||
|
||||
data->set.str[STRING_BEARER] ||
|
||||
data->set.str[STRING_SASL_AUTHZID] ||
|
||||
data->set.str[STRING_BEARER]) &&
|
||||
data->set.str[STRING_SERVICE_NAME]) &&
|
||||
(data->set.allow_auth_to_other_hosts ||
|
||||
Curl_peer_same_destination(data->state.initial_origin, conn->origin))) {
|
||||
result = Curl_creds_create(data->set.str[STRING_USERNAME],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue