]> git.sur5r.net Git - openldap/commitdiff
reinitialize presentlist & nonpresentlist
authorJong Hyuk Choi <jongchoi@openldap.org>
Wed, 25 Jun 2003 23:21:18 +0000 (23:21 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Wed, 25 Jun 2003 23:21:18 +0000 (23:21 +0000)
servers/slapd/config.c
servers/slapd/syncrepl.c

index 783550f8d3437e882ce29dad9d5d31283bed9d9c..178af28e6da97aeeac5c853eee392d150ffffb8c 100644 (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 );
index ca6d5c3b8eacfa118e9cfe6bb7cb50225af51756..8ae1aacc8040d89da0efe911cec6c7859e018e3d 100644 (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 );