From 0570e16c03382a2502fe35e55f88a19858a005e7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 00:19:06 +0000 Subject: Apply patch openwsman-2.6.5-fix-set-cipher-list-retval-check.patch patch_name: openwsman-2.6.5-fix-set-cipher-list-retval-check.patch present_in_specfile: true --- diff --git a/src/server/shttpd/shttpd.c b/src/server/shttpd/shttpd.c index ee509df..125c5cb 100644 --- a/src/server/shttpd/shttpd.c +++ b/src/server/shttpd/shttpd.c @@ -1541,7 +1541,7 @@ set_ssl(struct shttpd_ctx *ctx, const char *pem) if (ssl_cipher_list) { int rc = SSL_CTX_set_cipher_list(CTX, ssl_cipher_list); - if (rc != 0) { + if (rc != 1) { _shttpd_elog(E_LOG, NULL, "Failed to set SSL cipher list \"%s\"", ssl_cipher_list); } }