Commit 490d9e55 authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

fix slap_syncrepl_cn_bv

parent a4f93a69
...@@ -206,7 +206,7 @@ do_syncrepl( ...@@ -206,7 +206,7 @@ do_syncrepl(
Modifications *ml, *mlnext; Modifications *ml, *mlnext;
char *def_filter_str = NULL; char *def_filter_str = NULL;
struct berval slap_syncrepl_bv = BER_BVNULL; struct berval slap_syncrepl_cn_bv = BER_BVNULL;
const char *text; const char *text;
int match; int match;
...@@ -379,12 +379,12 @@ do_syncrepl( ...@@ -379,12 +379,12 @@ do_syncrepl(
ber_str2bv( si->base, 0, 0, &base_bv ); ber_str2bv( si->base, 0, 0, &base_bv );
dnPrettyNormal( 0, &base_bv, &pbase, &nbase, op.o_tmpmemctx ); dnPrettyNormal( 0, &base_bv, &pbase, &nbase, op.o_tmpmemctx );
ber_dupbv( &slap_syncrepl_bv, (struct berval *) &slap_syncrepl_bvc ); ber_dupbv( &slap_syncrepl_cn_bv, (struct berval *) &slap_syncrepl_cn_bvc );
slap_syncrepl_bv.bv_len = snprintf( slap_syncrepl_bv.bv_val, slap_syncrepl_cn_bv.bv_len = snprintf( slap_syncrepl_cn_bv.bv_val,
slap_syncrepl_bvc.bv_len, slap_syncrepl_cn_bvc.bv_len,
"syncrepl%d", si->id ); "cn=syncrepl%d", si->id );
build_new_dn( &op.o_req_dn, &pbase, &slap_syncrepl_bv, op.o_tmpmemctx ); build_new_dn( &op.o_req_dn, &pbase, &slap_syncrepl_cn_bv, op.o_tmpmemctx );
build_new_dn( &op.o_req_ndn, &nbase, &slap_syncrepl_bv, op.o_tmpmemctx ); build_new_dn( &op.o_req_ndn, &nbase, &slap_syncrepl_cn_bv, op.o_tmpmemctx );
/* set callback function */ /* set callback function */
cb.sc_response = cookie_callback; cb.sc_response = cookie_callback;
...@@ -402,8 +402,8 @@ do_syncrepl( ...@@ -402,8 +402,8 @@ do_syncrepl(
filter_free( op.ors_filter ); filter_free( op.ors_filter );
if ( op.ors_filterstr.bv_val ) if ( op.ors_filterstr.bv_val )
ch_free( op.ors_filterstr.bv_val ); ch_free( op.ors_filterstr.bv_val );
if ( slap_syncrepl_bv.bv_val ) if ( slap_syncrepl_cn_bv.bv_val )
ch_free( slap_syncrepl_bv.bv_val ); ch_free( slap_syncrepl_cn_bv.bv_val );
if ( pbase.bv_val ) if ( pbase.bv_val )
ch_free( pbase.bv_val ); ch_free( pbase.bv_val );
if ( nbase.bv_val ) if ( nbase.bv_val )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment