From 7cd62d7a5467ce951f554b860f2ff89485e9bacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 7 Mar 2010 13:25:51 +0100 Subject: [PATCH] mod_openssl: Fix check of return value from SSL_CTX_set_options --- src/modules/mod_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mod_openssl.c b/src/modules/mod_openssl.c index 36adb42..d596934 100644 --- a/src/modules/mod_openssl.c +++ b/src/modules/mod_openssl.c @@ -438,7 +438,7 @@ static gboolean openssl_setup(liServer *srv, liPlugin* p, liValue *val, gpointer if (!allow_ssl2) { /* disable SSLv2 */ - if (SSL_OP_NO_SSLv2 != SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv2)) { + if (0 == (SSL_OP_NO_SSLv2 & SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv2))) { ERROR(srv, "SSL_CTX_set_options(SSL_OP_NO_SSLv2): %s", ERR_error_string(ERR_get_error(), NULL)); goto error_free_socket; }