]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/init.c
Additional fix for ITS#4522. The "dn=" ist not optional.
[openldap] / servers / slapd / init.c
index ac710dfcbca31415b00715a83bc3be3cf2ac0a0d..4476d6a40e8317b5267100ed95ed27254764877a 100644 (file)
@@ -122,8 +122,6 @@ slap_init( int mode, const char *name )
 
        switch ( slapMode & SLAP_MODE ) {
        case SLAP_SERVER_MODE:
-               ldap_pvt_thread_pool_init( &connection_pool,
-                               connection_pool_max, 0);
 
                /* FALLTHRU */
        case SLAP_TOOL_MODE:
@@ -134,6 +132,8 @@ slap_init( int mode, const char *name )
 
                slap_name = name;
 
+               ldap_pvt_thread_pool_init( &connection_pool,
+                               connection_pool_max, 0);
                ldap_pvt_thread_mutex_init( &entry2str_mutex );
                ldap_pvt_thread_mutex_init( &replog_mutex );