r22612: Fix more cases where we have uninitialised values in the
[kai/samba.git] / source4 / winbind / wb_dom_info_trusted.c
index 8288c7921b6d29317d85589df9c506f9ca28b6f6..e0d074270cb80f641df6e9918b437d835ed00ec5 100644 (file)
@@ -52,11 +52,8 @@ struct composite_context *wb_trusted_dom_info_send(TALLOC_CTX *mem_ctx,
        struct composite_context *result, *ctx;
        struct trusted_dom_info_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 trusted_dom_info_state);
        if (state == NULL) goto failed;