summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados
diff options
context:
space:
mode:
authorSuyash Dongre <suyashd999@gmail.com>2024-06-18 19:37:29 +0200
committerSuyash Dongre <suyashd999@gmail.com>2024-06-27 14:00:08 +0200
commit4e19b516c857711a0d9a98415000782be5bb0f8f (patch)
tree32f73c218f8831779867fa1a2d4bdf96a81fe83f /src/rgw/driver/rados
parentMerge pull request #57626 from AliMasarweh/wip-alimasa-bn-admin-cli (diff)
downloadceph-4e19b516c857711a0d9a98415000782be5bb0f8f.tar.xz
ceph-4e19b516c857711a0d9a98415000782be5bb0f8f.zip
'keys' used after being moved.
Fixes: https://tracker.ceph.com/issues/66553 Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
Diffstat (limited to 'src/rgw/driver/rados')
-rw-r--r--src/rgw/driver/rados/rgw_user.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rgw/driver/rados/rgw_user.cc b/src/rgw/driver/rados/rgw_user.cc
index e154813aac1..7a8161e5741 100644
--- a/src/rgw/driver/rados/rgw_user.cc
+++ b/src/rgw/driver/rados/rgw_user.cc
@@ -1552,6 +1552,7 @@ static void rename_swift_keys(const rgw_user& user,
user.to_str(user_id);
auto modify_keys = std::move(keys);
+ keys = {};
for ([[maybe_unused]] auto& [k, key] : modify_keys) {
std::string id = user_id + ":" + key.subuser;
key.id = id;