diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-09-11 18:24:37 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-09-20 16:40:54 +0200 |
commit | bcec6627a2229cb6ee4cf3c3fbc4d5761e61a259 (patch) | |
tree | 33d0a4da3847ae1db2276d7ec30c5a222ad44f69 /server/reds.c | |
parent | 3494eaf938695fc75ed6718699d59a34fab0e17a (diff) | |
download | spice-bcec6627a2229cb6ee4cf3c3fbc4d5761e61a259.tar.gz spice-bcec6627a2229cb6ee4cf3c3fbc4d5761e61a259.tar.xz spice-bcec6627a2229cb6ee4cf3c3fbc4d5761e61a259.zip |
reds: Check errors returned from SSL_CTX_set_cipher_list
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index b1fd437e..147674eb 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3349,7 +3349,9 @@ static int reds_init_ssl(void) SSL_CTX_set_session_id_context(reds->ctx, (const unsigned char *)"SPICE", 5); if (strlen(ssl_parameters.ciphersuite) > 0) { - SSL_CTX_set_cipher_list(reds->ctx, ssl_parameters.ciphersuite); + if (!SSL_CTX_set_cipher_list(reds->ctx, ssl_parameters.ciphersuite)) { + return -1; + } } openssl_thread_setup(); |