From 0c0167e81158c0ca66d007ecdbf4d99698311c3e Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Mon, 2 May 2022 13:26:31 +0000 Subject: [PATCH] rgw/auth: static_cast uint64_t to time_t for set_expires Signed-off-by: Tobias Urdin --- src/rgw/rgw_auth_keystone.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_auth_keystone.cc b/src/rgw/rgw_auth_keystone.cc index 38b1c990ca8..fdd9e91fac5 100644 --- a/src/rgw/rgw_auth_keystone.cc +++ b/src/rgw/rgw_auth_keystone.cc @@ -342,7 +342,7 @@ TokenEngine::authenticate(const DoutPrefixProvider* dpp, << g_conf()->rgw_keystone_expired_token_cache_expiration << " secs = " << new_expires << dendl; - t->set_expires(new_expires); + t->set_expires(static_cast(new_expires)); } ldpp_dout(dpp, 0) << "validated token: " << t->get_project_name() << ":" << t->get_user_name() -- 2.47.3