From f91d5f484a60a0d6e9c0e7b8efe89c94a9310f9c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 14 Jan 2002 11:52:53 +0000 Subject: [PATCH] In DN_SUBTREE use idl_allids instead of explicit malloc. --- servers/slapd/back-ldbm/dn2id.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5