]> git.sur5r.net Git - openldap/commitdiff
bdb_show_key is for hash keys, not IDs
authorHoward Chu <hyc@openldap.org>
Sun, 20 Feb 2005 04:32:54 +0000 (04:32 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 20 Feb 2005 04:32:54 +0000 (04:32 +0000)
servers/slapd/back-bdb/idl.c

index 038de21ef2507f619824241d24f9b30470344533..32a78a93c61e0852276e1a2bc2ce131b9da69f1b 100644 (file)
@@ -271,7 +271,7 @@ bdb_show_key(
        DBT             *key,
        char            *buf )
 {
-       if ( key->size == sizeof( ID ) ) {
+       if ( key->size == 4 /* LUTIL_HASH_BYTES */ ) {
                unsigned char *c = key->data;
                sprintf( buf, "[%02x%02x%02x%02x]", c[0], c[1], c[2], c[3] );
                return buf;