From 41b5dd233b23eb3fe5b49d6a096d0bff81d5380e Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 7 Nov 2014 21:44:29 +0100 Subject: [PATCH] AuthSessionHandler.h: init protocol in constructor Init protocol in AuthSessionHandler constructor with with CEPH_AUTH_UNKNOWN. Signed-off-by: Danny Al-Gaaf --- src/auth/AuthSessionHandler.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth/AuthSessionHandler.h b/src/auth/AuthSessionHandler.h index 684b83a28681..c560119ec775 100644 --- a/src/auth/AuthSessionHandler.h +++ b/src/auth/AuthSessionHandler.h @@ -44,8 +44,9 @@ public: int messages_encrypted; int messages_decrypted; - AuthSessionHandler(CephContext *cct_) : cct(cct_), messages_signed(0), signatures_checked(0), - signatures_matched(0), signatures_failed(0), messages_encrypted(0), messages_decrypted(0) {} + AuthSessionHandler(CephContext *cct_) : cct(cct_), protocol(CEPH_AUTH_UNKNOWN), messages_signed(0), + signatures_checked(0), signatures_matched(0), signatures_failed(0), messages_encrypted(0), + messages_decrypted(0) {} AuthSessionHandler(CephContext *cct_, int protocol_, CryptoKey key_) : cct(cct_), protocol(protocol_), key(key_), messages_signed(0), signatures_checked(0), signatures_matched(0), -- 2.47.3