]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2009 21:15:45 +0000 (21:15 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2009 21:15:45 +0000 (21:15 +0000)
servers/slapd/result.c

index 3ec5021db539279774a837ce6fcf2073c4f27174..65b3605d7ca9d6557970040bcc5a72c7dd19fb00 100644 (file)
@@ -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;