mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#4370 always init slap_daemon mutexes
This commit is contained in:
parent
9870eba3ee
commit
bebfc49d71
@ -1121,6 +1121,12 @@ int slapd_daemon_init( const char *urls )
|
||||
|
||||
Debug( LDAP_DEBUG_ARGS, "daemon_init: %s\n",
|
||||
urls ? urls : "<null>", 0, 0 );
|
||||
|
||||
ldap_pvt_thread_mutex_init( &slap_daemon.sd_mutex );
|
||||
#ifdef HAVE_TCPD
|
||||
ldap_pvt_thread_mutex_init( &slap_daemon.tcpd_mutex );
|
||||
#endif
|
||||
|
||||
if( (rc = sockinit()) != 0 ) return rc;
|
||||
|
||||
#ifdef HAVE_SYSCONF
|
||||
@ -1190,11 +1196,6 @@ int slapd_daemon_init( const char *urls )
|
||||
#endif
|
||||
|
||||
ldap_charray_free( u );
|
||||
ldap_pvt_thread_mutex_init( &slap_daemon.sd_mutex );
|
||||
|
||||
#ifdef HAVE_TCPD
|
||||
ldap_pvt_thread_mutex_init( &slap_daemon.tcpd_mutex );
|
||||
#endif
|
||||
|
||||
return !i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user