mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
In DN_SUBTREE use idl_allids instead of explicit malloc.
This commit is contained in:
parent
7887ef7e92
commit
f91d5f484a
1 changed files with 1 additions and 3 deletions
|
|
@ -227,9 +227,7 @@ dn2idl(
|
||||||
*idlp = NULL;
|
*idlp = NULL;
|
||||||
|
|
||||||
if ( prefix == DN_SUBTREE_PREFIX && be_issuffix(be, dn->bv_val) ) {
|
if ( prefix == DN_SUBTREE_PREFIX && be_issuffix(be, dn->bv_val) ) {
|
||||||
*idlp = ch_malloc( 2*sizeof(ID) );
|
*idlp = idl_allids( be );
|
||||||
(*idlp)[0] = ID_BLOCK_ALLIDS_VALUE;
|
|
||||||
(*idlp)[1] = 0;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue