From: Jong Hyuk Choi Date: Wed, 25 Jun 2003 23:21:18 +0000 (+0000) Subject: reinitialize presentlist & nonpresentlist X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~860 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9df9b1377a5942b04cd5c4a4ee18b59db640b905;p=openldap reinitialize presentlist & nonpresentlist --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 783550f8d3..178af28e6d 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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 ); diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index ca6d5c3b8e..8ae1aacc80 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 );