mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
oauth2: Don't use XOAUTH2 in OAuth 2.0 variables
This commit is contained in:
parent
4e3d396900
commit
eaa98cef8d
8 changed files with 14 additions and 13 deletions
|
|
@ -2725,7 +2725,7 @@ static void conn_free(struct connectdata *conn)
|
|||
|
||||
Curl_safefree(conn->user);
|
||||
Curl_safefree(conn->passwd);
|
||||
Curl_safefree(conn->xoauth2_bearer);
|
||||
Curl_safefree(conn->oauth_bearer);
|
||||
Curl_safefree(conn->options);
|
||||
Curl_safefree(conn->proxyuser);
|
||||
Curl_safefree(conn->proxypasswd);
|
||||
|
|
@ -5535,8 +5535,8 @@ static CURLcode create_conn(struct SessionHandle *data,
|
|||
}
|
||||
|
||||
if(data->set.str[STRING_BEARER]) {
|
||||
conn->xoauth2_bearer = strdup(data->set.str[STRING_BEARER]);
|
||||
if(!conn->xoauth2_bearer) {
|
||||
conn->oauth_bearer = strdup(data->set.str[STRING_BEARER]);
|
||||
if(!conn->oauth_bearer) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue