From 3655b0012737bb659a22d595b8db5b48e53faa7f Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 7 Jun 2016 10:17:53 +0800 Subject: [PATCH] auth/cephx: return error if we are unable to decode rotate-key Signed-off-by: xie xingguo --- src/auth/cephx/CephxClientHandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/cephx/CephxClientHandler.cc b/src/auth/cephx/CephxClientHandler.cc index a314608cc23..fe1f87a8510 100644 --- a/src/auth/cephx/CephxClientHandler.cc +++ b/src/auth/cephx/CephxClientHandler.cc @@ -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); }