mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 05:13:35 -05:00
ITS#9647 Find correct sid in compare_csns() more of the time
This commit is contained in:
parent
e8f1038de0
commit
ba37508f80
1 changed files with 3 additions and 1 deletions
|
|
@ -1135,7 +1135,9 @@ compare_csns( struct sync_cookie *sc1, struct sync_cookie *sc2, int *which )
|
|||
*which = 0;
|
||||
|
||||
if ( sc1->numcsns < sc2->numcsns ) {
|
||||
*which = sc1->numcsns;
|
||||
for ( i=0; i < sc1->numcsns && sc1->sids[i] == sc2->sids[i] ; i++ )
|
||||
/* Find the first one that's missing */;
|
||||
*which = i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue