From 7c8b3c68da9dd93641c59e6cff7a47a264fd68b4 Mon Sep 17 00:00:00 2001 From: Andreas Nilsson Date: Tue, 11 Nov 2014 15:18:38 -0500 Subject: SERVER-16009 Always initializing credentials for __system user. --- src/mongo/db/auth/user.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mongo/db/auth/user.h') diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h index 3950e42090a..d920abdda9d 100644 --- a/src/mongo/db/auth/user.h +++ b/src/mongo/db/auth/user.h @@ -59,12 +59,23 @@ namespace mongo { MONGO_DISALLOW_COPYING(User); public: struct SCRAMCredentials { + SCRAMCredentials() : + iterationCount(0), + salt(""), + serverKey(""), + storedKey("") {} + int iterationCount; std::string salt; std::string serverKey; std::string storedKey; }; struct CredentialData { + CredentialData() : + password(""), + scram(), + isExternal(false) {} + std::string password; SCRAMCredentials scram; bool isExternal; -- cgit v1.2.1