mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#5328: Make relay_back_has_subordinates() return failure on failure
This commit is contained in:
parent
aa9399db03
commit
7f28d0a13d
1 changed files with 3 additions and 5 deletions
|
|
@ -457,15 +457,14 @@ relay_back_has_subordinates( Operation *op, Entry *e, int *hasSubs )
|
|||
{
|
||||
SlapReply rs = { 0 };
|
||||
BackendDB *bd;
|
||||
int rc = 1;
|
||||
int rc = LDAP_OTHER;
|
||||
|
||||
bd = relay_back_select_backend( op, &rs,
|
||||
( LDAP_SUCCESS | RB_ERR ) );
|
||||
bd = relay_back_select_backend( op, &rs, LDAP_OTHER );
|
||||
/* FIXME: this test only works if there are no overlays, so
|
||||
* it is nearly useless; if made stricter, no nested back-relays
|
||||
* can be instantiated... too bad. */
|
||||
if ( bd == NULL || bd == op->o_bd ) {
|
||||
return 0;
|
||||
return LDAP_OTHER;
|
||||
}
|
||||
|
||||
if ( bd->be_has_subordinates ) {
|
||||
|
|
@ -477,7 +476,6 @@ relay_back_has_subordinates( Operation *op, Entry *e, int *hasSubs )
|
|||
}
|
||||
|
||||
return rc;
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue