]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/result.c
ITS#6132
[openldap] / servers / slapd / result.c
index 4f2a7f17b12e5ea3f58ace77df8ef316ea7cf269..406b7d6347ec54cc9d3dc7ce98f1e04bb210b495 100644 (file)
@@ -145,7 +145,7 @@ static long send_ldap_ber(
 
        /* write only one pdu at a time - wait til it's our turn */
        ldap_pvt_thread_mutex_lock( &conn->c_write1_mutex );
-       if (( op->o_abandon && !op->o_cancel ) || connection_state_closing( conn )) {
+       if (( op->o_abandon && !op->o_cancel ) || !connection_valid( conn )) {
                ldap_pvt_thread_mutex_unlock( &conn->c_write1_mutex );
                return 0;
        }