Skip to content
Snippets Groups Projects
Commit 9cb03868 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7062 call response callbacks even if connection was dropped

parent 60c0f615
No related branches found
No related tags found
No related merge requests found
......@@ -570,7 +570,8 @@ send_ldap_response(
int rc = LDAP_SUCCESS;
long bytes;
if (( rs->sr_err == SLAPD_ABANDON || op->o_abandon ) && !op->o_cancel ) {
/* op was actually aborted, bypass everything if client didn't Cancel */
if (( rs->sr_err == SLAPD_ABANDON ) && !op->o_cancel ) {
rc = SLAPD_ABANDON;
goto clean2;
}
......@@ -582,6 +583,12 @@ send_ldap_response(
}
}
/* op completed, connection aborted, bypass sending response */
if ( op->o_abandon && !op->o_cancel ) {
rc = SLAPD_ABANDON;
goto clean2;
}
#ifdef LDAP_CONNECTIONLESS
if (op->o_conn && op->o_conn->c_is_udp)
ber = op->o_res_ber;
......
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