From: Howard Chu Date: Sat, 6 Mar 2004 19:16:20 +0000 (+0000) Subject: ITS#3004 fix again X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~351 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48ac6100977da1cb4c1415ec69d5c5c2eecb2592;p=openldap ITS#3004 fix again --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 5ecae44977..d6a29083d6 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -59,7 +59,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 ) ); }