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:
xie xingguo 2016-06-07 10:17:53 +08:00
parent 5ed15148e5
commit 3655b00127

View File

@ -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);
}