X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fconnection.c;h=4662f98cebd5be4c03af22fdc0985f9fe527081a;hb=dbaf7c5c2503b2770c9075e30a9a63b6ff577d6f;hp=3643713cc8d31096f2147b491c3493f0c2194830;hpb=eb16636abe2dd2b810d155c49dd21de988f8e311;p=openldap diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 3643713cc8..4662f98ceb 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -835,8 +835,8 @@ void connection_closing( Connection *c, const char *why ) * connection_resched / connection_close before we * finish, but that's OK. */ - ldap_pvt_thread_mutex_unlock( &c->c_mutex ); slapd_clr_write( sd, 1 ); + ldap_pvt_thread_mutex_unlock( &c->c_mutex ); ldap_pvt_thread_mutex_lock( &c->c_write_mutex ); ldap_pvt_thread_mutex_lock( &c->c_mutex ); ldap_pvt_thread_mutex_unlock( &c->c_write_mutex ); @@ -863,7 +863,7 @@ connection_close( Connection *c ) return; assert( c->c_struct_state == SLAP_C_USED ); - assert( c->c_struct_state == SLAP_C_CLOSING ); + assert( c->c_conn_state == SLAP_C_CLOSING ); /* NOTE: c_mutex should be locked by caller */