From: Howard Chu Date: Mon, 14 Jan 2002 11:52:53 +0000 (+0000) Subject: In DN_SUBTREE use idl_allids instead of explicit malloc. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~141 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f91d5f484a60a0d6e9c0e7b8efe89c94a9310f9c;p=openldap In DN_SUBTREE use idl_allids instead of explicit malloc. --- diff --git a/servers/slapd/back-ldbm/dn2id.c b/servers/slapd/back-ldbm/dn2id.c index 547cd63b6c..83325ad275 100644 --- a/servers/slapd/back-ldbm/dn2id.c +++ b/servers/slapd/back-ldbm/dn2id.c @@ -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; }