]> git.sur5r.net Git - openldap/commitdiff
ITS#3638 Init ids to zero in bdb_dn2idl
authorHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 07:45:14 +0000 (07:45 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 07:45:14 +0000 (07:45 +0000)
servers/slapd/back-bdb/dn2id.c

index c76c8ea613288a9eac2353b30ca83e39d3d48e01..14f587f0fe1cbf25c1b2aae116816134639c7e4f 100644 (file)
@@ -361,6 +361,7 @@ bdb_dn2idl(
        ((char *)key.data)[0] = prefix;
        AC_MEMCPY( &((char *)key.data)[1], e->e_nname.bv_val, key.size - 1 );
 
+       BDB_IDL_ZERO( ids );
        rc = bdb_idl_fetch_key( op->o_bd, db, NULL, &key, ids, NULL, 0 );
 
        if( rc != 0 ) {