From: Howard Chu Date: Sun, 20 Feb 2005 04:32:54 +0000 (+0000) Subject: bdb_show_key is for hash keys, not IDs X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=caeae75662f200aed4475e2dc57e8dfdacd72711;p=openldap bdb_show_key is for hash keys, not IDs --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 038de21ef2..32a78a93c6 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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;