state->num_data = length;
state->max_read = max_read;
- subreq = np_write_send(state, server_event_context(), state->handle,
+ subreq = np_write_send(state, req->sconn->ev_ctx, state->handle,
state->data, length);
if (subreq == NULL) {
TALLOC_FREE(state);
goto send;
}
- subreq = np_read_send(state, server_event_context(),
+ subreq = np_read_send(state, req->sconn->ev_ctx,
state->handle, state->data, state->max_read);
if (subreq == NULL) {
reply_nterror(req, NT_STATUS_NO_MEMORY);
DEBUG(6, ("reply_pipe_write: %x name: %s len: %d\n", (int)fsp->fnum,
fsp_str_dbg(fsp), (int)state->numtowrite));
- subreq = np_write_send(state, server_event_context(),
+ subreq = np_write_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data, state->numtowrite);
if (subreq == NULL) {
TALLOC_FREE(state);
state->numtowrite -= 2;
}
- subreq = np_write_send(state, server_event_context(),
+ subreq = np_write_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data, state->numtowrite);
if (subreq == NULL) {
TALLOC_FREE(state);
state->outbuf = req->outbuf;
req->outbuf = NULL;
- subreq = np_read_send(state, server_event_context(),
+ subreq = np_read_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data,
state->smb_maxcnt);
if (subreq == NULL) {
return tevent_req_post(req, ev);
}
- subreq = np_read_send(state, server_event_context(),
+ subreq = np_read_send(state, ev,
fsp->fake_file_handle,
state->out_data.data,
state->out_data.length);
return tevent_req_post(req, ev);
}
- subreq = np_write_send(state, server_event_context(),
+ subreq = np_write_send(state, ev,
fsp->fake_file_handle,
in_data.data,
in_data.length);