uint16_t vwv[15];
uint16_t fnum;
struct iovec bytes;
+ struct tevent_req *subreq;
};
+static bool cli_openx_cancel(struct tevent_req *req)
+{
+ struct cli_openx_state *state =
+ tevent_req_data(req,
+ struct cli_openx_state);
+
+ return tevent_req_cancel(state->subreq);
+}
+
static void cli_openx_done(struct tevent_req *subreq);
struct tevent_req *cli_openx_create(TALLOC_CTX *mem_ctx,
return NULL;
}
tevent_req_set_callback(subreq, cli_openx_done, req);
+
+ state->subreq = subreq;
+ tevent_req_set_cancel_fn(req, cli_openx_cancel);
+
*psmbreq = subreq;
return req;
}