1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r24110: I hate seeing callers manually filling in the composite context. Use

the helper functions instead (and in kai's new code, which just copied
the previous bad practice).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2007-08-01 00:38:53 +00:00 committed by Gerald (Jerry) Carter
parent a6a45ab970
commit 0908d8232e
2 changed files with 3 additions and 4 deletions

View File

@ -59,8 +59,7 @@ struct composite_context *wb_name2domain_send(TALLOC_CTX *mem_ctx,
ctx = wb_cmd_lookupname_send(state, service, user_dom, user_name);
if (ctx == NULL) goto failed;
ctx->async.fn = name2domain_recv_sid;
ctx->async.private_data = state;
composite_continue(result, ctx, name2domain_recv_sid, ctx->async.private_data);
return result;
failed:

View File

@ -94,8 +94,8 @@ struct composite_context *wb_sid2domain_send(TALLOC_CTX *mem_ctx,
ctx = wb_cmd_lookupsid_send(state, service, state->sid);
if (ctx == NULL) goto failed;
ctx->async.fn = sid2domain_recv_name;
ctx->async.private_data = state;
composite_continue(result, ctx, sid2domain_recv_name, ctx->async.private_data);
return result;
failed: