]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CephxServiceHandler.cc: fix get_auth conditional 6211/head
authorNathan Cutler <ncutler@suse.com>
Sun, 27 Sep 2015 19:55:00 +0000 (21:55 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 9 Oct 2015 04:28:34 +0000 (06:28 +0200)
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 <ncutler@suse.com>
src/auth/cephx/CephxServiceHandler.cc

index c5d91d98bcac067ea759af0414d31c259d49b106..d65ac79f0797a54d6482b40241b5f2339c8ba5f9 100644 (file)
@@ -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;
       }