diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 3 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 9eec655f7..808c748cc 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -263,7 +263,8 @@ class ModuleSSLGnuTLS : public Module ServerInstance->Config->DelIOHook(listenports[i]); for (unsigned int j = 0; j < ServerInstance->stats->BoundPortCount; j++) if (ServerInstance->Config->ports[j] == listenports[i]) - ServerInstance->Config->openSockfd[j]->SetDescription("plaintext"); + if (ServerInstance->Config->openSockfd[j]) + ServerInstance->Config->openSockfd[j]->SetDescription("plaintext"); } } } diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 7ad78e2ea..f46f04988 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -297,7 +297,8 @@ class ModuleSSLOpenSSL : public Module ServerInstance->Config->DelIOHook(listenports[i]); for (unsigned int j = 0; j < ServerInstance->stats->BoundPortCount; j++) if (ServerInstance->Config->ports[j] == listenports[i]) - ServerInstance->Config->openSockfd[j]->SetDescription("plaintext"); + if (ServerInstance->Config->openSockfd[j]) + ServerInstance->Config->openSockfd[j]->SetDescription("plaintext"); } } } |