]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW: get_service_secret returns a bool, not an int
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 2 Feb 2011 20:00:00 +0000 (12:00 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 2 Feb 2011 22:38:14 +0000 (14:38 -0800)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/auth/cephx/CephxKeyServer.cc

index f5ebcb0fe1b83fd18a5e9592158955a00f430cab..059fe91f0d241fd31fd74880193a6c4295b815f3 100644 (file)
@@ -375,7 +375,7 @@ int KeyServer::_build_session_auth_info(uint32_t service_id, CephXServiceTicketI
 int KeyServer::build_session_auth_info(uint32_t service_id, CephXServiceTicketInfo& auth_ticket_info,
                                       CephXSessionAuthInfo& info)
 {
-  if (get_service_secret(service_id, info.service_secret, info.secret_id) < 0) {
+  if (!get_service_secret(service_id, info.service_secret, info.secret_id)) {
     return -EPERM;
   }