Revision: 8012
http://sourceforge.net/p/astlinux/code/8012
Author: abelbeck
Date: 2016-12-04 16:09:19 +0000 (Sun, 04 Dec 2016)
Log Message:
-----------
lighttpd, add patch upstream from 1.4.41, [TLS] SSL_shutdown() only if handshake finished
Ref: https://redmine.lighttpd.net/projects/lighttpd/repository/revisions/156bea38597ced5de7521ada2e85fb67aead21db/diff
Added Paths:
-----------
branches/1.0/package/lighttpd/lighttpd-ssl_shutdown-only-if-handshake-finished.patch
Added: branches/1.0/package/lighttpd/lighttpd-ssl_shutdown-only-if-handshake-finished.patch
===================================================================
--- branches/1.0/package/lighttpd/lighttpd-ssl_shutdown-only-if-handshake-finished.patch (rev 0)
+++ branches/1.0/package/lighttpd/lighttpd-ssl_shutdown-only-if-handshake-finished.patch 2016-12-04 16:09:19 UTC (rev 8012)
@@ -0,0 +1,22 @@
+commit 156bea38597ced5de7521ada2e85fb67aead21db
+Author: Glenn Strauss <gst...@gl...>
+Date: Tue Aug 2 22:32:28 2016 -0400
+
+ [TLS] SSL_shutdown() only if handshake finished
+
+ avoid noise in logs due to calling SSL_shutdown() on a connection
+ that has not yet completed TLS handshake
+
+diff --git a/src/connections.c b/src/connections.c
+index ccdf360..4cd2139 100644
+--- a/src/connections.c
++++ b/src/connections.c
+@@ -183,7 +183,7 @@ static void connection_handle_shutdown(server *srv, connection *con) {
+
+ #ifdef USE_OPENSSL
+ server_socket *srv_sock = con->srv_socket;
+- if (srv_sock->is_ssl) {
++ if (srv_sock->is_ssl && SSL_is_init_finished(con->ssl)) {
+ int ret, ssl_r;
+ unsigned long err;
+ ERR_clear_error();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|