mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 13:23:44 -05:00
Cleanup
This commit is contained in:
parent
8050701f56
commit
82998790bb
3 changed files with 6 additions and 9 deletions
|
|
@ -1029,9 +1029,8 @@ anlist2attrs( AttributeName * anlist )
|
|||
i = 0;
|
||||
while ( attrs && attrs[i] ) {
|
||||
if ( *attrs[i] == '@' ) {
|
||||
ch_free( attrs[i] );
|
||||
for ( j = i; attrs[j]; j++ ) {
|
||||
if ( j == i )
|
||||
ch_free( attrs[i] );
|
||||
attrs[j] = attrs[j+1];
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1043,9 +1042,8 @@ anlist2attrs( AttributeName * anlist )
|
|||
j = i + 1;
|
||||
while ( attrs && attrs[j] ) {
|
||||
if ( !strcmp( attrs[i], attrs[j] )) {
|
||||
ch_free( attrs[j] );
|
||||
for ( k = j; attrs && attrs[k]; k++ ) {
|
||||
if ( k == j )
|
||||
ch_free( attrs[j] );
|
||||
attrs[k] = attrs[k+1];
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ slap_compose_sync_cookie(
|
|||
"csn=%s,rid=%03d", csn->bv_val, rid );
|
||||
}
|
||||
}
|
||||
ber_str2bv( cookiestr, strlen(cookiestr), 1, cookie );
|
||||
ber_str2bv_x( cookiestr, strlen(cookiestr), 1, cookie,
|
||||
op ? op->o_tmpmemctx : NULL );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -231,9 +231,8 @@ init_syncrepl(syncinfo_t *si)
|
|||
j = 0;
|
||||
while ( exattrs[j] != NULL ) {
|
||||
if ( !strcmp( exattrs[j], sync_descs[i]->ad_cname.bv_val )) {
|
||||
ch_free( exattrs[j] );
|
||||
for ( k = j; exattrs[k] != NULL; k++ ) {
|
||||
if ( k == j )
|
||||
ch_free( exattrs[k] );
|
||||
exattrs[k] = exattrs[k+1];
|
||||
}
|
||||
} else {
|
||||
|
|
@ -250,9 +249,8 @@ init_syncrepl(syncinfo_t *si)
|
|||
while ( oc->soc_required[k] ) {
|
||||
if ( !strcmp( exattrs[i],
|
||||
oc->soc_required[k]->sat_cname.bv_val )) {
|
||||
ch_free( exattrs[i] );
|
||||
for ( l = i; exattrs[l]; l++ ) {
|
||||
if ( l == i )
|
||||
ch_free( exattrs[i] );
|
||||
exattrs[l] = exattrs[l+1];
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue