[ssld] Fix possible crash when DH parameters are not provided
This has ssld calling strlen() on a NULL value [ci skip]
This commit is contained in:
parent
5c8da48264
commit
1ea72c8f86
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue