From: Howard Chu Date: Sun, 25 Jan 2009 22:06:24 +0000 (+0000) Subject: More for prev commit X-Git-Tag: ACLCHECK_0~958 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=673405bc2ed46032ec814cb64e61f29fc38eae3c;p=openldap More for prev commit --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 65b3605d7c..9dc2dd5362 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -199,14 +199,12 @@ static long send_ldap_ber( err, sock_errstr(err), 0 ); if ( err != EWOULDBLOCK && err != EAGAIN ) { + conn->c_writers--; 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; + return -1; } /* wait for socket to be write-ready */