mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-01 03:19:27 -05:00
re-fix previous commit
This commit is contained in:
parent
7bea240767
commit
70ed7d58a6
1 changed files with 10 additions and 9 deletions
|
|
@ -2340,6 +2340,9 @@ backsql_search( Operation *op, SlapReply *rs )
|
|||
rs->sr_ref = NULL;
|
||||
rs->sr_matched = NULL;
|
||||
rs->sr_entry = NULL;
|
||||
if ( rs->sr_err == LDAP_REFERRAL ) {
|
||||
rs->sr_err = LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
goto next_entry;
|
||||
}
|
||||
|
|
@ -2452,15 +2455,13 @@ next_entry2:;
|
|||
}
|
||||
|
||||
end_of_search:;
|
||||
if ( rs->sr_err == LDAP_SUCCESS ) {
|
||||
if ( rs->sr_nentries > 0 ) {
|
||||
rs->sr_ref = rs->sr_v2ref;
|
||||
rs->sr_err = (rs->sr_v2ref == NULL) ? LDAP_SUCCESS
|
||||
: LDAP_REFERRAL;
|
||||
|
||||
} else {
|
||||
rs->sr_err = bsi.bsi_status;
|
||||
}
|
||||
if ( rs->sr_nentries > 0 ) {
|
||||
rs->sr_ref = rs->sr_v2ref;
|
||||
rs->sr_err = (rs->sr_v2ref == NULL) ? LDAP_SUCCESS
|
||||
: LDAP_REFERRAL;
|
||||
|
||||
} else {
|
||||
rs->sr_err = bsi.bsi_status;
|
||||
}
|
||||
|
||||
send_results:;
|
||||
|
|
|
|||
Loading…
Reference in a new issue