From: Nathan Cutler Date: Sun, 27 Sep 2015 19:55:00 +0000 (+0200) Subject: CephxServiceHandler.cc: fix get_auth conditional X-Git-Tag: v9.1.0~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6211%2Fhead;p=ceph.git CephxServiceHandler.cc: fix get_auth conditional The KeyServer class has a public method get_auth() that returns a boolean value. This value is being checked here - fix the conditional so it triggers when get_auth() returns false. http://tracker.ceph.com/issues/9756 References: #9756 Signed-off-by: Nathan Cutler --- diff --git a/src/auth/cephx/CephxServiceHandler.cc b/src/auth/cephx/CephxServiceHandler.cc index c5d91d98bcac..d65ac79f0797 100644 --- a/src/auth/cephx/CephxServiceHandler.cc +++ b/src/auth/cephx/CephxServiceHandler.cc @@ -97,7 +97,7 @@ int CephxServiceHandler::handle_request(bufferlist::iterator& indata, bufferlist bool should_enc_ticket = false; EntityAuth eauth; - if (key_server->get_auth(entity_name, eauth) < 0) { + if (! key_server->get_auth(entity_name, eauth)) { ret = -EPERM; break; }