diff options
author | xie xingguo <xie.xingguo@zte.com.cn> | 2019-03-13 09:30:54 +0100 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2019-03-13 09:30:54 +0100 |
commit | 19d8ef6f008ad04e6bb0216dbd6325a0ee20d743 (patch) | |
tree | 2b22cb5e3c2ac1abab96d530abece01c0ec722fa /src/auth | |
parent | Merge PR #26763 into master (diff) | |
download | ceph-19d8ef6f008ad04e6bb0216dbd6325a0ee20d743.tar.xz ceph-19d8ef6f008ad04e6bb0216dbd6325a0ee20d743.zip |
auth/cephx: fix encode_encrypt error handling
**encode_encrypt** returns 0 on success, 1 otherwise
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to 'src/auth')
-rw-r--r-- | src/auth/cephx/CephxServiceHandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth/cephx/CephxServiceHandler.cc b/src/auth/cephx/CephxServiceHandler.cc index 03d9c7357f1..12bb8348f44 100644 --- a/src/auth/cephx/CephxServiceHandler.cc +++ b/src/auth/cephx/CephxServiceHandler.cc @@ -179,7 +179,7 @@ int CephxServiceHandler::handle_request( } std::string err; if (encode_encrypt(cct, *pconnection_secret, session_key, cbl, - err) < 0) { + err)) { lderr(cct) << __func__ << " failed to encrypt connection secret, " << err << dendl; ret = -EACCES; |