]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: fix verify_authorize_reply stupid
authorSage Weil <sage@newdream.net>
Thu, 29 Oct 2009 22:49:09 +0000 (15:49 -0700)
committerSage Weil <sage@newdream.net>
Thu, 29 Oct 2009 22:49:09 +0000 (15:49 -0700)
src/auth/cephx/CephxProtocol.cc
src/mon/AuthMonitor.cc

index be521548c4a3e166b1610b2471f59c98187a3d1f..0922ae7983208ebf073118edb4c51a89c46c18c5 100644 (file)
@@ -315,9 +315,9 @@ bool CephXAuthorizer::verify_reply(bufferlist::iterator& indata)
     return false;
   }
 
-  __u32 expect = nonce + 1;
+  __u64 expect = nonce + 1;
   if (expect != reply.nonce_plus_one) {
-    dout(0) << "verify_authorizer_reply bad ts got " << reply.nonce_plus_one << " expected " << expect
+    dout(0) << "verify_authorizer_reply bad nonce got " << reply.nonce_plus_one << " expected " << expect
            << " sent " << nonce << dendl;
     return false;
   }
index 2d336dba9299e1c0fe8c747588cab0b5be05aa0e..16b2299fd00899220294c256aeb5f4f5d9dd5b88 100644 (file)
@@ -275,7 +275,7 @@ bool AuthMonitor::preprocess_auth(MAuth *m)
        ::decode(supported, indata);
         ::decode(entity_name, indata);
       } catch (buffer::error *e) {
-       dout(0) << "failed to decode message auth message" << dendl;
+       dout(0) << "failed to decode initial auth message" << dendl;
        ret = -EINVAL;
       }