mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3004, fix IDL cache AVL comparisons
This commit is contained in:
parent
5716b7f1b2
commit
23b2ce8b3a
@ -58,7 +58,7 @@ bdb_idl_entry_cmp( const void *v_idl1, const void *v_idl2 )
|
||||
const bdb_idl_cache_entry_t *idl1 = v_idl1, *idl2 = v_idl2;
|
||||
int rc;
|
||||
|
||||
if ((rc = idl1->db - idl2->db )) return rc;
|
||||
if ((rc = SLAP_PTRCMP( idl1->db, idl2->db ))) return rc;
|
||||
if ((rc = idl1->kstr.bv_len - idl2->kstr.bv_len )) return rc;
|
||||
return ( memcmp ( idl1->kstr.bv_val, idl2->kstr.bv_val , idl1->kstr.bv_len ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user