ITS#7577 more alias deref checks

This commit is contained in:
Howard Chu 2013-05-17 09:15:36 -07:00
parent 37c8b35ebd
commit a8c1438688
2 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -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 {