mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
Merge pull request #53801 from BBoozmen/oozmen_sts_keygen
RGW/STS: when generating keys, take the trailing null character into account Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
This commit is contained in:
commit
c959100fba
@ -54,7 +54,7 @@ int Credentials::generateCredentials(const DoutPrefixProvider *dpp,
|
||||
rgw::auth::Identity* identity)
|
||||
{
|
||||
uuid_d accessKey, secretKey;
|
||||
char accessKeyId_str[MAX_ACCESS_KEY_LEN], secretAccessKey_str[MAX_SECRET_KEY_LEN];
|
||||
char accessKeyId_str[MAX_ACCESS_KEY_LEN + 1], secretAccessKey_str[MAX_SECRET_KEY_LEN + 1];
|
||||
|
||||
//AccessKeyId
|
||||
gen_rand_alphanumeric_plain(cct, accessKeyId_str, sizeof(accessKeyId_str));
|
||||
|
Loading…
Reference in New Issue
Block a user