mirror of
https://github.com/samba-team/samba.git
synced 2025-11-09 20:23:51 +03:00
r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
instead make the normal composite_done() and composite_error() functions automatically trigger a delayed callback if the caller has had no opportunity to setup a async callback this removes one of the common mistakes in writing a composite function
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
99cf7dbb17
commit
f9413ce792
@@ -341,7 +341,7 @@ struct composite_context *ldap_connect_send(struct ldap_connection *conn,
|
||||
state->ctx->status = ldap_parse_basic_url(conn, url, &conn->host,
|
||||
&conn->port, &conn->ldaps);
|
||||
if (!NT_STATUS_IS_OK(state->ctx->status)) {
|
||||
composite_trigger_error(state->ctx);
|
||||
composite_error(state->ctx, state->ctx->status);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user