From 1ea72c8f8627a9986707ddb94a4bf0607a56737e Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Tue, 3 May 2016 17:46:15 +0000 Subject: [PATCH] [ssld] Fix possible crash when DH parameters are not provided This has ssld calling strlen() on a NULL value [ci skip] --- ssld/ssld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssld/ssld.c b/ssld/ssld.c index f98f3283..d187c70e 100644 --- a/ssld/ssld.c +++ b/ssld/ssld.c @@ -931,10 +931,10 @@ ssl_new_keys(mod_ctl_t * ctl, mod_ctl_buf_t * ctl_buf) key = buf; buf += strlen(key) + 1; dhparam = buf; - if(strlen(dhparam) == 0) - dhparam = NULL; buf += strlen(dhparam) + 1; cipher_list = buf; + if(strlen(dhparam) == 0) + dhparam = NULL; if(strlen(cipher_list) == 0) cipher_list = NULL;