mirror of
https://github.com/ceph/ceph
synced 2025-01-18 09:02:08 +00:00
auth/cephx: return error if we are unable to decode rotate-key
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
5ed15148e5
commit
3655b00127
@ -167,7 +167,7 @@ int CephxClientHandler::handle_response(int ret, bufferlist::iterator& indata)
|
||||
if (decode_decrypt(cct, secrets, secret_key, indata, error)) {
|
||||
ldout(cct, 0) << "could not set rotating key: decode_decrypt failed. error:"
|
||||
<< error << dendl;
|
||||
error.clear();
|
||||
return -EINVAL;
|
||||
} else {
|
||||
rotating_secrets->set_secrets(secrets);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user