]> git.sur5r.net Git - openldap/commitdiff
In DN_SUBTREE use idl_allids instead of explicit malloc.
authorHoward Chu <hyc@openldap.org>
Mon, 14 Jan 2002 11:52:53 +0000 (11:52 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 14 Jan 2002 11:52:53 +0000 (11:52 +0000)
servers/slapd/back-ldbm/dn2id.c

index 547cd63b6c590eb914e55ca7b5384f8f11bcb8fd..83325ad275e554e14d3c719fc2e615d4324d34c8 100644 (file)
@@ -227,9 +227,7 @@ dn2idl(
        *idlp = NULL;
 
        if ( prefix == DN_SUBTREE_PREFIX && be_issuffix(be, dn->bv_val) ) {
-               *idlp = ch_malloc( 2*sizeof(ID) );
-               (*idlp)[0] = ID_BLOCK_ALLIDS_VALUE;
-               (*idlp)[1] = 0;
+               *idlp = idl_allids( be );
                return 0;
        }