summaryrefslogtreecommitdiff
path: root/source4/winbind
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-14 20:13:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:18 -0500
commitf7732560eea1c5d1de316fb2d64b78ad7507549b (patch)
tree8341adb0109c71abf9e4fc93487d580bc60373a2 /source4/winbind
parent7dd6e5fe9250b0e8653dd40cc3a84a23f2f71d5a (diff)
downloadsamba-f7732560eea1c5d1de316fb2d64b78ad7507549b.tar.gz
samba-f7732560eea1c5d1de316fb2d64b78ad7507549b.tar.bz2
samba-f7732560eea1c5d1de316fb2d64b78ad7507549b.zip
r11727: Minor cleanup
(This used to be commit 681451af727d12294ecee1b8fddc595b0148003f)
Diffstat (limited to 'source4/winbind')
-rw-r--r--source4/winbind/wb_async_helpers.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/source4/winbind/wb_async_helpers.c b/source4/winbind/wb_async_helpers.c
index 915638abb7..51907c1350 100644
--- a/source4/winbind/wb_async_helpers.c
+++ b/source4/winbind/wb_async_helpers.c
@@ -311,30 +311,21 @@ static void get_schannel_creds_recv_auth(struct rpc_request *req)
struct get_schannel_creds_state);
state->ctx->status = dcerpc_ndr_request_recv(req);
- if (!NT_STATUS_IS_OK(state->ctx->status)) goto done;
+ if (!composite_is_ok(state->ctx)) return;
state->ctx->status = state->a.out.result;
- if (!NT_STATUS_IS_OK(state->ctx->status)) goto done;
+ if (!composite_is_ok(state->ctx)) return;
if (!creds_client_check(state->creds_state,
state->a.out.credentials)) {
DEBUG(5, ("Server got us invalid creds\n"));
- state->ctx->status = NT_STATUS_UNSUCCESSFUL;
- goto done;
+ composite_error(state->ctx, NT_STATUS_UNSUCCESSFUL);
+ return;
}
cli_credentials_set_netlogon_creds(state->wks_creds,
state->creds_state);
- state->ctx->state = COMPOSITE_STATE_DONE;
-
- done:
- if (!NT_STATUS_IS_OK(state->ctx->status)) {
- state->ctx->state = COMPOSITE_STATE_ERROR;
- }
- if ((state->ctx->state >= COMPOSITE_STATE_DONE) &&
- (state->ctx->async.fn != NULL)) {
- state->ctx->async.fn(state->ctx);
- }
+ composite_done(state->ctx);
}
NTSTATUS wb_get_schannel_creds_recv(struct composite_context *c,