]> git.sur5r.net Git - openldap/commitdiff
release mutex only *after* backend connection initialization (ITS#6993)
authorPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 17:23:01 +0000 (11:23 -0600)
committerPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 17:23:54 +0000 (11:23 -0600)
servers/slapd/connection.c

index aea3b39191c1e919637861dd1a1cbacb70e1aa33..130838ced8f51f17c8a99d4df6685f0cfb53d408 100644 (file)
@@ -571,9 +571,9 @@ Connection * connection_init(
        slap_sasl_external( c, ssf, authid );
 
        slapd_add_internal( s, 1 );
-       ldap_pvt_thread_mutex_unlock( &c->c_mutex );
 
        backend_connection_init(c);
+       ldap_pvt_thread_mutex_unlock( &c->c_mutex );
 
        return c;
 }