Fix handling return value of SSL_CTX_set_options (fixes #2157, thx mlcreech)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2716 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.27
Stefan Bühler 2010-02-28 11:48:05 +00:00
parent 320e293038
commit 34fb1258e4
2 changed files with 2 additions and 2 deletions

2
NEWS
View File

@ -4,7 +4,7 @@ NEWS
====
- 1.4.27 -
*
* Fix handling return value of SSL_CTX_set_options (fixes #2157, thx mlcreech)
- 1.4.26 - 2010-02-07
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)

View File

@ -525,7 +525,7 @@ int network_init(server *srv) {
if (!s->ssl_use_sslv2) {
/* disable SSLv2 */
if (SSL_OP_NO_SSLv2 != SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2)) {
if (!(SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2))) {
log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
ERR_error_string(ERR_get_error(), NULL));
return -1;