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>
(cherry picked from commit
7250db62cb7ac1e9c0b1f5956d60b9d874496702)
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;
}