From: Howard Chu Date: Sat, 6 Mar 2004 12:29:19 +0000 (+0000) Subject: ITS#3004, fix IDL cache AVL comparisons X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~360 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23b2ce8b3a31e142f7f3fe00c41f49deb133d527;p=openldap ITS#3004, fix IDL cache AVL comparisons --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 3620f0285d..fa32f48658 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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 ) ); }