summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-09-13 17:17:22 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-09-13 17:18:50 +0100
commitca954d7feca8d9a8cc754ef2a2bfba14ef5428da (patch)
tree799bfcb4a845c295ef80f6e7043f4e0ea5cc074f /src
parent987f4b40af5ce7a7ff3ff60f490ff81421c4e07a (diff)
Check returncode from SSL_CTX_set_cipher_list()
Diffstat (limited to 'src')
-rw-r--r--src/src/tls-openssl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c
index 53a967a19..0cf66279a 100644
--- a/src/src/tls-openssl.c
+++ b/src/src/tls-openssl.c
@@ -1248,8 +1248,10 @@ if ( !init_dh(server_sni, cbinfo->dhparam, NULL, &dummy_errstr)
)
return SSL_TLSEXT_ERR_NOACK;
-if (cbinfo->server_cipher_list)
- SSL_CTX_set_cipher_list(server_sni, CS cbinfo->server_cipher_list);
+if ( cbinfo->server_cipher_list
+ && !SSL_CTX_set_cipher_list(server_sni, CS cbinfo->server_cipher_list))
+ return SSL_TLSEXT_ERR_NOACK;
+
#ifndef DISABLE_OCSP
if (cbinfo->u_ocsp.server.file)
{