From ad57bdda6c861c7e9873c866f3b695e88ff10345 Mon Sep 17 00:00:00 2001 From: Richard Caunt Date: Wed, 8 Nov 2017 13:06:22 +0000 Subject: [PATCH] Corrected keycount check --- src/curl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index 69f0172..fab1132 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -331,7 +331,8 @@ void CurlHandlerPool::ReturnHandler(CURL* h) #define IAMCRED_EXPIRATION "Expiration" #define IAMCRED_ROLEARN "RoleArn" #define IAMCRED_KEYCOUNT 4 -#define IAMCRED_KEYCOUNT_ECS 5 +#define +5 // [NOTICE] // This symbol is for libcurl under 7.23.0 @@ -1438,7 +1439,7 @@ bool S3fsCurl::SetIAMCredentials(const char* response) } 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"); return false; }