From 01cf75383eef25d8a054eb42612d65bb5096eb9f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 25 Jan 2009 21:15:45 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/result.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 3ec5021db5..65b3605d7c 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -199,9 +199,11 @@ static long send_ldap_ber( err, sock_errstr(err), 0 ); if ( err != EWOULDBLOCK && err != EAGAIN ) { + ldap_pvt_thread_mutex_unlock( &conn->c_write1_mutex ); connection_closing( conn, "connection lost on write" ); ldap_pvt_thread_mutex_unlock( &conn->c_mutex ); + ldap_pvt_thread_mutex_lock( &conn->c_write1_mutex ); ret = -1; break; -- 2.39.5