the helper functions instead (and in kai's new code, which just copied
the previous bad practice).
Andrew Bartlett
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:
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: