reinitialize presentlist & nonpresentlist

This commit is contained in:
Jong Hyuk Choi 2003-06-25 23:21:18 +00:00
parent 9faeffe8c6
commit 9df9b1377a
2 changed files with 4 additions and 1 deletions

View File

@ -2749,6 +2749,9 @@ add_syncrepl(
si->tlimit = -1;
si->slimit = -1;
si->presentlist = NULL;
LDAP_LIST_INIT( &si->nonpresentlist );
if ( si == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG( CONFIG, ERR, "out of memory in add_syncrepl\n", 0, 0,0 );

View File

@ -1163,7 +1163,6 @@ syncrepl_add_glue(
for ( i = 0; i <= levels; i++ ) {
glue = (Entry*) ch_calloc( 1, sizeof(Entry) );
glue->e_private = NULL;
ber_dupbv( &dn, &e->e_nname );
j = levels - i;
@ -2006,6 +2005,7 @@ nonpresent_callback(
if ( rs->sr_type == REP_RESULT ) {
count = avl_free( si->presentlist, avl_ber_bvfree );
si->presentlist = NULL;
return LDAP_SUCCESS;
} else if ( rs->sr_type == REP_SEARCH ) {
a = attr_find( rs->sr_entry->e_attrs, slap_schema.si_ad_entryUUID );