From d89ff1897d0d5294f8ed26464d953f53b449d4af Mon Sep 17 00:00:00 2001 From: ManiacTwister Date: Mon, 2 Nov 2015 00:43:06 +0100 Subject: [PATCH] Check if ssl_cipher_list is set --- src/ircd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ircd.c b/src/ircd.c index d830b249..f717b3bc 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -705,6 +705,12 @@ main(int argc, char *argv[]) if(ServerInfo.ssl_cert != NULL && ServerInfo.ssl_private_key != NULL) { + if(ServerInfo.ssl_cipher_list == NULL) + { + ierror("no ssl cipher list specified in serverinfo block."); + return -4; + } + /* just do the rb_setup_ssl_server to validate the config */ if(!rb_setup_ssl_server(ServerInfo.ssl_cert, ServerInfo.ssl_private_key, ServerInfo.ssl_dh_params, ServerInfo.ssl_cipher_list)) {