mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#7577 more alias deref checks
This commit is contained in:
parent
37c8b35ebd
commit
a8c1438688
@ -714,6 +714,14 @@ mdb_idscopes(
|
||||
}
|
||||
|
||||
id = isc->id;
|
||||
|
||||
/* Catch entries from deref'd aliases */
|
||||
x = mdb_id2l_search( isc->scopes, id );
|
||||
if ( x <= isc->scopes[0].mid && isc->scopes[x].mid == id ) {
|
||||
isc->nscope = x;
|
||||
return MDB_SUCCESS;
|
||||
}
|
||||
|
||||
while (id) {
|
||||
if ( !rc ) {
|
||||
key.mv_data = &id;
|
||||
|
@ -858,7 +858,7 @@ notfound:
|
||||
int i;
|
||||
|
||||
/* child of base, just append RDNs to base->e_name */
|
||||
if ( nsubs < ncand || isc.nscope == 1 ) {
|
||||
if ( nsubs < ncand || isc.scopes[isc.nscope].mid == base->e_id ) {
|
||||
pdn = base->e_name;
|
||||
pndn = base->e_nname;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user