diff options
Diffstat (limited to 'source4/winbind/wb_cmd_lookupsid.c')
-rw-r--r-- | source4/winbind/wb_cmd_lookupsid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/winbind/wb_cmd_lookupsid.c b/source4/winbind/wb_cmd_lookupsid.c index f5549a9a7f..5e17c265e3 100644 --- a/source4/winbind/wb_cmd_lookupsid.c +++ b/source4/winbind/wb_cmd_lookupsid.c @@ -43,11 +43,9 @@ struct composite_context *wb_cmd_lookupsid_send(TALLOC_CTX *mem_ctx, struct composite_context *result, *ctx; struct cmd_lookupsid_state *state; - result = talloc(mem_ctx, struct composite_context); + + result = composite_create(mem_ctx, service->task->event_ctx); if (result == NULL) goto failed; - result->state = COMPOSITE_STATE_IN_PROGRESS; - result->async.fn = NULL; - result->event_ctx = service->task->event_ctx; state = talloc(result, struct cmd_lookupsid_state); if (state == NULL) goto failed; |