ITS#3004, fix IDL cache AVL comparisons

This commit is contained in:
Howard Chu 2004-03-06 12:29:19 +00:00
parent 5716b7f1b2
commit 23b2ce8b3a

View File

@ -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 ) );
}