mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
reinitialize presentlist & nonpresentlist
This commit is contained in:
parent
9faeffe8c6
commit
9df9b1377a
@ -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 );
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user