]> git.sur5r.net Git - openldap/commitdiff
Import ITS#3004 fix from HEAD
authorHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:19:30 +0000 (21:19 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:19:30 +0000 (21:19 +0000)
servers/slapd/back-bdb/idl.c

index 5d7f321857e43aca864e412703ecded9c8b110ee..335552d03b07402c92fdd39f3714eabf28fd8b42 100644 (file)
@@ -50,7 +50,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 ) );
 }