0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

Fix possible crash when DH parameters are not provided

This has ssld calling strlen() on a NULL value

[ci ckip]
This commit is contained in:
Aaron Jones 2016-05-03 17:47:29 +00:00
parent da20854e83
commit f831e92603
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -908,10 +908,10 @@ ssl_new_keys(mod_ctl_t * ctl, mod_ctl_buf_t * ctl_buf)
key = buf; key = buf;
buf += strlen(key) + 1; buf += strlen(key) + 1;
dhparam = buf; dhparam = buf;
if(strlen(dhparam) == 0)
dhparam = NULL;
buf += strlen(dhparam) + 1; buf += strlen(dhparam) + 1;
cipher_list = buf; cipher_list = buf;
if(strlen(dhparam) == 0)
dhparam = NULL;
if(strlen(cipher_list) == 0) if(strlen(cipher_list) == 0)
cipher_list = NULL; cipher_list = NULL;