mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 10:15:13 +00:00
Fixed a deadlock bug when specifying iam role(IAMv2)
This commit is contained in:
parent
7605c2e8fb
commit
38e8a830c9
@ -2885,6 +2885,9 @@ int S3fsCurl::GetIAMv2ApiToken(const char* token_url, int token_ttl, const char*
|
||||
if(CURLE_OK != curl_easy_setopt(hCurl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback)){
|
||||
return -EIO;
|
||||
}
|
||||
if(CURLE_OK != curl_easy_setopt(hCurl, CURLOPT_INFILESIZE, 0)){
|
||||
return false;
|
||||
}
|
||||
if(!S3fsCurl::AddUserAgent(hCurl)){ // put User-Agent
|
||||
return -EIO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user