summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-06-01 04:35:52 +0200
committerattilamolnar <attilamolnar@hush.com>2012-06-01 04:35:52 +0200
commit9289021a512906412de2236521ebde516adbb849 (patch)
tree14b92e63de6d68cd21c0184ff561a9cca611af5b /src/modules
parent926c3f82b9b94c59026e9aad29fb8293ba93f94b (diff)
m_ssl_gnutls Only generate DH params when dh_params is inited
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 689d69580..6ca876d4c 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -323,6 +323,9 @@ class ModuleSSLGnuTLS : public Module
// once a day, once a week or once a month. Depending on the
// security requirements.
+ if (!dh_alloc)
+ return;
+
int ret;
if((ret = gnutls_dh_params_generate2(dh_params, dh_bits)) < 0)