From 553a78e2ee2b34626a64204b926a71b21298dcd7 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Wed, 30 Aug 2000 22:08:19 +0000
Subject: [PATCH] Don't drain after TLS failure.... causes busy forever loop

---
 servers/slapd/connection.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c
index ecb3b69b70..144482857b 100644
--- a/servers/slapd/connection.c
+++ b/servers/slapd/connection.c
@@ -909,6 +909,7 @@ int connection_read(ber_socket_t s)
 			/* connections_mutex and c_mutex are locked */
 			connection_closing( c );
 
+#if 0
 			/* Drain input before close, to allow SSL error codes
 			 * to propagate to client. */
 			FD_ZERO(&rfd);
@@ -922,6 +923,7 @@ int connection_read(ber_socket_t s)
 				ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_DRAIN,
 				    NULL);
 			}
+#endif
 			connection_close( c );
 
 		} else if ( rc == 0 ) {
-- 
GitLab