From 673405bc2ed46032ec814cb64e61f29fc38eae3c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 25 Jan 2009 22:06:24 +0000 Subject: [PATCH] More for prev commit --- servers/slapd/result.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 */ -- 2.39.5