Project

General

Profile

Backport #13425

Updated by Nathan Cutler over 8 years ago

https://github.com/ceph/ceph/pull/6213 In <code>src/auth/cephx/CephxServiceHandler.cc</code> there is a conditional: 

 <pre> 
 if (key_server->get_auth(entity_name, eauth) < 0) { 
   ret = -EPERM; 
   break; 
 } 
 </pre> 

 As stated in #9756 this conditional will never fire because the function in question, <code>KeyServer::get_auth()</code> returns a boolean value that by definition will never be less than zero.

Back