mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-09 16:06:46 +00:00
Corrected keycount check
This commit is contained in:
parent
a0b69d1d3d
commit
ad57bdda6c
@ -331,7 +331,8 @@ void CurlHandlerPool::ReturnHandler(CURL* h)
|
|||||||
#define IAMCRED_EXPIRATION "Expiration"
|
#define IAMCRED_EXPIRATION "Expiration"
|
||||||
#define IAMCRED_ROLEARN "RoleArn"
|
#define IAMCRED_ROLEARN "RoleArn"
|
||||||
#define IAMCRED_KEYCOUNT 4
|
#define IAMCRED_KEYCOUNT 4
|
||||||
#define IAMCRED_KEYCOUNT_ECS 5
|
#define
|
||||||
|
5
|
||||||
|
|
||||||
// [NOTICE]
|
// [NOTICE]
|
||||||
// This symbol is for libcurl under 7.23.0
|
// This symbol is for libcurl under 7.23.0
|
||||||
@ -1438,7 +1439,7 @@ bool S3fsCurl::SetIAMCredentials(const char* response)
|
|||||||
}
|
}
|
||||||
S3FS_PRN_INFO3("Parsed");
|
S3FS_PRN_INFO3("Parsed");
|
||||||
|
|
||||||
if(S3fsCurl::is_ecs ? IAMCRED_KEYCOUNT_ECS : IAMCRED_KEYCOUNT != keyval.size()){
|
if((S3fsCurl::is_ecs ? IAMCRED_KEYCOUNT_ECS : IAMCRED_KEYCOUNT) != keyval.size()){
|
||||||
S3FS_PRN_INFO3("Not enough keys");
|
S3FS_PRN_INFO3("Not enough keys");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user