]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-ssl.c
Correctly detect when SSL subsystem must be initialized
[ngircd-alex.git] / src / ngircd / conn-ssl.c
index 59729e046628213937d932021591fd987c7b265b..45e6458a19d5805d48b13a11f27c639cd3ee3963 100644 (file)
@@ -241,8 +241,10 @@ void ConnSSL_Free(CONNECTION *c)
 bool
 ConnSSL_InitLibrary( void )
 {
-       if (!array_bytes(&Conf_SSLOptions.ListenPorts))
+       if (!Conf_SSLInUse()) {
+               LogDebug("SSL not in use, skipping initialization.");
                return true;
+       }
 
 #ifdef HAVE_LIBSSL
        SSL_CTX *newctx;