From 5c125d19a97ca48ee346d195e90cff2d0a144e4c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 16 Oct 2005 20:38:48 +0000 Subject: [PATCH] Revise last commit --- servers/slapd/connection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 6254517f8c..89de750871 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1545,6 +1545,9 @@ int connection_read(ber_socket_t s) #endif connection_close( c ); + connection_return( c ); + ldap_pvt_thread_mutex_unlock( MCA_GET_CONN_MUTEX(s) ); + return 0; } else if ( rc == 0 ) { void *ssl; @@ -1578,7 +1581,7 @@ int connection_read(ber_socket_t s) !ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_DATA_READY, NULL ) ) { #ifdef SLAP_LIGHTWEIGHT_DISPATCHER - if( rc == 0 ) slapd_set_read( s, 1 ); + slapd_set_read( s, 1 ); #endif connection_return( c ); -- 2.39.5