diff options
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 6a6a7923a..7934c23ab 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -281,8 +281,6 @@ class ModuleSSLGnuTLS : public Module ServerInstance->GenRandom = &randhandler; - // Void return, guess we assume success - gnutls_certificate_set_dh_params(x509_cred, dh_params); Implementation eventlist[] = { I_On005Numeric, I_OnRehash, I_OnModuleRehash, I_OnUserConnect, I_OnEvent, I_OnHookIO }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); @@ -487,6 +485,8 @@ class ModuleSSLGnuTLS : public Module { GenerateDHParams(); } + + gnutls_certificate_set_dh_params(x509_cred, dh_params); } void GenerateDHParams() |