]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephx: initializing two member variables in the ctors 52591/head
authorRonen Friedman <rfriedma@redhat.com>
Sat, 22 Jul 2023 15:27:55 +0000 (10:27 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sat, 22 Jul 2023 15:27:55 +0000 (10:27 -0500)
Eliminating compiler warnings.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/auth/cephx/CephxProtocol.h

index 8a28b7306233c4981e574a68be0ce9607d213823..aabfaaad10c93428258332ecaf0f7e05298acbb8 100644 (file)
@@ -379,7 +379,7 @@ struct CephXServiceTicketInfo {
 WRITE_CLASS_ENCODER(CephXServiceTicketInfo)
 
 struct CephXAuthorizeChallenge : public AuthAuthorizerChallenge {
-  uint64_t server_challenge;
+  uint64_t server_challenge = 0;
   void encode(ceph::buffer::list& bl) const {
     using ceph::encode;
     __u8 struct_v = 1;
@@ -396,7 +396,7 @@ struct CephXAuthorizeChallenge : public AuthAuthorizerChallenge {
 WRITE_CLASS_ENCODER(CephXAuthorizeChallenge)
 
 struct CephXAuthorize {
-  uint64_t nonce;
+  uint64_t nonce = 0;
   bool have_challenge = false;
   uint64_t server_challenge_plus_one = 0;
   void encode(ceph::buffer::list& bl) const {