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:
parent
a6a45ab970
commit
0908d8232e
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user