]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9561 slapd init.c: fix copy/paste error
authorHoward Chu <hyc@openldap.org>
Thu, 3 Jun 2021 20:27:59 +0000 (21:27 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Jun 2021 20:28:36 +0000 (21:28 +0100)
Added in 629cafc98d4 for ITS#8707

servers/slapd/init.c

index 8f74d1f299a20a265c47fb3a7d5e092f5a433179..44c4c55ccfb43bd2d71ee3a829972459c67def7d 100644 (file)
@@ -89,7 +89,7 @@ slap_init( int mode, const char *name )
 
        slap_op_init();
 
-       ldap_pvt_thread_mutex_init( &slapd_init_cond );
+       ldap_pvt_thread_mutex_init( &slapd_init_mutex );
        ldap_pvt_thread_cond_init( &slapd_init_cond );
 
 #ifdef SLAPD_MODULES
@@ -279,7 +279,7 @@ int slap_destroy(void)
 
        }
 
-       ldap_pvt_thread_mutex_destroy( &slapd_init_cond );
+       ldap_pvt_thread_mutex_destroy( &slapd_init_mutex );
        ldap_pvt_thread_cond_destroy( &slapd_init_cond );
 
        slap_op_destroy();