r24110: I hate seeing callers manually filling in the composite context. Use
[kai/samba-autobuild/.git] / source4 / winbind / wb_name2domain.c
index b3f9f0c799ae2fe9b675b56a940c1d899fdb4791..b31ccb121261c7e0e23b577db00ae3006a4e3ffe 100644 (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: