diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-16 21:18:29 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-16 21:18:29 +0200 |
commit | 8cd84786d0b710a60d25e4c9c58fdde2fb0b8211 (patch) | |
tree | ed246992c9146ed17da774f5743e250c90380274 /src/modules/extra | |
parent | 3e20f7bd2959fb1f267ba03b0387443b1c30cba1 (diff) |
Initialize all fields of issl_session on module load in SSL modules
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index cdfe00b9c..21b58f280 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -157,7 +157,7 @@ public: reference<ssl_cert> cert; reference<SSLConfig> config; - issl_session() : socket(NULL), sess(NULL) {} + issl_session() : socket(NULL), sess(NULL), status(ISSL_NONE) {} }; static SSLConfig* GetSessionConfig(gnutls_session_t sess) diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 9ca92fe52..01bf11678 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -75,6 +75,8 @@ public: bool data_to_write; issl_session() + : sess(NULL) + , status(ISSL_NONE) { outbound = false; data_to_write = false; |