]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit again (ITS#4722)
authorHoward Chu <hyc@openldap.org>
Thu, 26 Oct 2006 22:10:12 +0000 (22:10 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 26 Oct 2006 22:10:12 +0000 (22:10 +0000)
servers/slapd/connection.c

index 2e6421cce53eeb6fe74b4fdda2393b1c21d0f96e..4662f98cebd5be4c03af22fdc0985f9fe527081a 100644 (file)
@@ -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 );