Kaydet (Commit) 92da838e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1079343 Uninitialized pointer field

Change-Id: I05ec88144273c15181e9afa8f616b0ab11695f04
üst 106d1621
......@@ -53,6 +53,7 @@ public:
};
protected:
CryptoType mType;
#if USE_TLS_OPENSSL
EVP_CIPHER_CTX mContext;
#endif
......@@ -61,7 +62,6 @@ protected:
SECItem* mSecParam;
PK11SymKey* mSymKey;
#endif
CryptoType mType;
#if USE_TLS_OPENSSL
const EVP_CIPHER* getCipher(CryptoType type);
......
......@@ -16,8 +16,13 @@ namespace core {
using namespace std;
Crypto::Crypto(CryptoType type) :
mType(type)
Crypto::Crypto(CryptoType type)
: mType(type)
#if USE_TLS_NSS
, mContext(NULL)
, mSecParam(NULL)
, mSymKey(NULL)
#endif
{
#if USE_TLS_NSS
// Initialize NSS, database functions are not needed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment