From 7250db62cb7ac1e9c0b1f5956d60b9d874496702 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Sun, 27 Sep 2015 21:55:00 +0200 Subject: [PATCH] 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 --- src/auth/cephx/CephxServiceHandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/cephx/CephxServiceHandler.cc b/src/auth/cephx/CephxServiceHandler.cc index c5d91d98bcac0..d65ac79f0797a 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; } -- 2.39.5