mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
fix tree delete error handling
This commit is contained in:
parent
9066d14290
commit
7bea240767
@ -2452,13 +2452,15 @@ next_entry2:;
|
||||
}
|
||||
|
||||
end_of_search:;
|
||||
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_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;
|
||||
}
|
||||
}
|
||||
|
||||
send_results:;
|
||||
|
Loading…
Reference in New Issue
Block a user