From: Jeremy Harris Date: Thu, 13 Sep 2018 16:17:22 +0000 (+0100) Subject: Check returncode from SSL_CTX_set_cipher_list() X-Git-Tag: exim-4.92-RC1~113 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca954d7feca8d9a8cc754ef2a2bfba14ef5428da;p=exim.git Check returncode from SSL_CTX_set_cipher_list() --- 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) {