Skip to content
Snippets Groups Projects
Commit eedeadf1 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7577 more alias deref checks

parent f11a6675
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment