summaryrefslogtreecommitdiffstats
path: root/apps/ciphers.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ciphers.c')
-rw-r--r--apps/ciphers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/ciphers.c b/apps/ciphers.c
index 3c76782b7e..f473f4c3dc 100644
--- a/apps/ciphers.c
+++ b/apps/ciphers.c
@@ -145,8 +145,12 @@ int MAIN(int argc, char **argv)
ctx=SSL_CTX_new(meth);
if (ctx == NULL) goto err;
- if (ciphers != NULL)
- SSL_CTX_set_cipher_list(ctx,ciphers);
+ if (ciphers != NULL) {
+ if(!SSL_CTX_set_cipher_list(ctx,ciphers)) {
+ BIO_printf(bio_err, "Error in cipher list\n");
+ goto err;
+ }
+ }
ssl=SSL_new(ctx);
if (ssl == NULL) goto err;