View | Details | Raw Unified | Return to bug 209266 | Differences between
and this patch

Collapse All | Expand All

(-)www/lighttpd/files/patch-src_network.c (+23 lines)
Line 0 Link Here
1
Cherry-picked from upstream
2
https://redmine.lighttpd.net/projects/lighttpd/repository/revisions/1ca52fdce3b87f7748dd5db6f59d738ed7a9efe1/diff
3
4
--- src/network.c.orig	2015-12-04 21:13:47 UTC
5
+++ src/network.c
6
@@ -769,7 +769,7 @@ int network_init(server *srv) {
7
 
8
 		if (!s->ssl_use_sslv2) {
9
 			/* disable SSLv2 */
10
-			if (!(SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2))) {
11
+			if ((SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2)) != SSL_OP_NO_SSLv2) {
12
 				log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
13
 						ERR_error_string(ERR_get_error(), NULL));
14
 				return -1;
15
@@ -778,7 +778,7 @@ int network_init(server *srv) {
16
 
17
 		if (!s->ssl_use_sslv3) {
18
 			/* disable SSLv3 */
19
-			if (!(SSL_OP_NO_SSLv3 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv3))) {
20
+			if ((SSL_OP_NO_SSLv3 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv3)) != SSL_OP_NO_SSLv3) {
21
 				log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
22
 						ERR_error_string(ERR_get_error(), NULL));
23
 				return -1;

Return to bug 209266