From b538692282e3e407d26cfc8ac5f6ab0c30327cb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 27 Aug 2014 20:55:31 +0200
Subject: [PATCH] SSL: Fix lost close packets.

Removed some erroneous code.
---
 lib/modules/SSL.pmod/Connection.pike | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/modules/SSL.pmod/Connection.pike b/lib/modules/SSL.pmod/Connection.pike
index f1f57c3ffc..eb531de234 100644
--- a/lib/modules/SSL.pmod/Connection.pike
+++ b/lib/modules/SSL.pmod/Connection.pike
@@ -416,11 +416,6 @@ void send_packet(Packet packet, int|void priority)
 		  PACKET_heartbeat : PRI_urgent,
 		  PACKET_application_data : PRI_application ])[packet->content_type];
 
-  if ((state & CONNECTION_local_closing) && (priority >= PRI_application)) {
-    SSL3_DEBUG_MSG("send_packet: Ignoring application packet during close.\n");
-    return;
-  }
-
   if ((packet->content_type == PACKET_handshake) &&
       (priority == PRI_application)) {
     // Assume the packet is either hello_request or client_hello,
-- 
GitLab