From: Howard Chu Date: Sun, 25 Jan 2009 21:15:45 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: ACLCHECK_0~959 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01cf75383eef25d8a054eb42612d65bb5096eb9f;p=openldap Fix prev commit --- 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;