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: ...@@ -53,6 +53,7 @@ public:
}; };
protected: protected:
CryptoType mType;
#if USE_TLS_OPENSSL #if USE_TLS_OPENSSL
EVP_CIPHER_CTX mContext; EVP_CIPHER_CTX mContext;
#endif #endif
...@@ -61,7 +62,6 @@ protected: ...@@ -61,7 +62,6 @@ protected:
SECItem* mSecParam; SECItem* mSecParam;
PK11SymKey* mSymKey; PK11SymKey* mSymKey;
#endif #endif
CryptoType mType;
#if USE_TLS_OPENSSL #if USE_TLS_OPENSSL
const EVP_CIPHER* getCipher(CryptoType type); const EVP_CIPHER* getCipher(CryptoType type);
......
...@@ -16,8 +16,13 @@ namespace core { ...@@ -16,8 +16,13 @@ namespace core {
using namespace std; using namespace std;
Crypto::Crypto(CryptoType type) : Crypto::Crypto(CryptoType type)
mType(type) : mType(type)
#if USE_TLS_NSS
, mContext(NULL)
, mSecParam(NULL)
, mSymKey(NULL)
#endif
{ {
#if USE_TLS_NSS #if USE_TLS_NSS
// Initialize NSS, database functions are not needed // 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