]> git.sur5r.net Git - openldap/commitdiff
cleanup connection release
authorPierangelo Masarati <ando@openldap.org>
Sat, 3 Jul 2010 01:09:17 +0000 (01:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 3 Jul 2010 01:09:17 +0000 (01:09 +0000)
servers/slapd/back-meta/bind.c

index 55c088bd6b0de6ca1ed054ff1d774971a6d25ba9..8b7b7d4b62c3b44f456bdaa2308b7a9c9b97b56f 100644 (file)
@@ -767,8 +767,8 @@ retry_binding:;
                                if ( mc != NULL ) {
                                        ldap_pvt_thread_mutex_lock( &mi->mi_conninfo.lai_mutex );
                                        LDAP_BACK_CONN_BINDING_CLEAR( msc );
+                                       meta_back_release_conn_lock( mi, mc, 0 );
                                        ldap_pvt_thread_mutex_unlock( &mi->mi_conninfo.lai_mutex );
-                                       meta_back_release_conn( mi, mc );
                                }
 
                                return 0;