diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index 46bc7b170e..624103657a 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -1081,7 +1081,7 @@ static int search_candidates( } if( op->ors_deref & LDAP_DEREF_SEARCHING ) { - rc = search_aliases( op, rs, e, txn, mci, scopes, stack ); + rc = search_aliases( op, rs, e->e_id, txn, mci, scopes, stack ); } else { rc = LDAP_SUCCESS; }