From d6c68cdf4885647180e356ad5dc3172717d788da Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 9 Jul 2004 17:44:50 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/backend.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 10deb7143b..fcc4378228 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -302,7 +302,7 @@ int backend_startup(Backend *be) be->be_pending_csn_list = (struct be_pcl *) ch_calloc( 1, sizeof( struct be_pcl )); build_new_dn( &be->be_context_csn, be->be_nsuffix, - &slap_ldapsync_cn_bv, NULL ); + (struct berval *)&slap_ldapsync_cn_bv, NULL ); LDAP_TAILQ_INIT( be->be_pending_csn_list ); @@ -401,8 +401,8 @@ int backend_startup(Backend *be) i, backendDB[i].bd_info->bi_type, 0 ); #endif } - build_new_dn( &be->be_context_csn, be->be_nsuffix, - &slap_ldapsync_cn_bv, NULL ); + build_new_dn( &backendDB[i].be_context_csn, backendDB[i].be_nsuffix, + (struct berval *)&slap_ldapsync_cn_bv, NULL ); if ( backendDB[i].bd_info->bi_db_open ) { rc = backendDB[i].bd_info->bi_db_open( @@ -541,6 +541,7 @@ int backend_destroy(void) if ( bd->be_rootdn.bv_val ) free( bd->be_rootdn.bv_val ); if ( bd->be_rootndn.bv_val ) free( bd->be_rootndn.bv_val ); if ( bd->be_rootpw.bv_val ) free( bd->be_rootpw.bv_val ); + if ( bd->be_context_csn.bv_val ) free( bd->be_context_csn.bv_val ); acl_destroy( bd->be_acl, global_acl ); } free( backendDB ); -- 2.39.5