mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Cleanup dup_compare
This commit is contained in:
parent
3658226e95
commit
f7ec966aad
@ -468,11 +468,11 @@ hdb_dup_compare(
|
|||||||
cn = (diskNode *)curkey->data;
|
cn = (diskNode *)curkey->data;
|
||||||
|
|
||||||
/* data is not aligned, cannot compare directly */
|
/* data is not aligned, cannot compare directly */
|
||||||
ul = un->nrdnlen[0] << 8 | un->nrdnlen[1];
|
rc = un->nrdnlen[0] - cn->nrdnlen[0];
|
||||||
cl = cn->nrdnlen[0] << 8 | cn->nrdnlen[1];
|
|
||||||
|
|
||||||
rc = ul - cl;
|
|
||||||
if ( rc ) return rc;
|
if ( rc ) return rc;
|
||||||
|
rc = un->nrdnlen[1] - cn->nrdnlen[1];
|
||||||
|
if ( rc ) return rc;
|
||||||
|
|
||||||
return strcmp( un->nrdn, cn->nrdn );
|
return strcmp( un->nrdn, cn->nrdn );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user