mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
ITS#5597 fix CSN compare when provider has CSNs with other sids.
This commit is contained in:
parent
9b25fa4c38
commit
f94cd4b518
1 changed files with 7 additions and 2 deletions
|
|
@ -689,8 +689,8 @@ compare_csns( struct sync_cookie *sc1, struct sync_cookie *sc2, int *which )
|
|||
return -1;
|
||||
}
|
||||
|
||||
for (i=0; i<sc1->numcsns; i++) {
|
||||
for (j=0; j<sc2->numcsns; j++) {
|
||||
for (j=0; j<sc2->numcsns; j++) {
|
||||
for (i=0; i<sc1->numcsns; i++) {
|
||||
if ( sc1->sids[i] != sc2->sids[j] )
|
||||
continue;
|
||||
value_match( &match, slap_schema.si_ad_entryCSN,
|
||||
|
|
@ -703,6 +703,11 @@ compare_csns( struct sync_cookie *sc1, struct sync_cookie *sc2, int *which )
|
|||
}
|
||||
break;
|
||||
}
|
||||
if ( i == sc1->numcsns ) {
|
||||
/* sc2 has a sid sc1 lacks */
|
||||
*which = j;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return match;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue