summaryrefslogtreecommitdiff
path: root/source3/smbd/pipes.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 13:47:56 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:43 +0100
commite7a100200bf19655f7ebc100ff13ba6d4adfca78 (patch)
tree90ac81551f2e9b6ece4004632ebaf424557c7da0 /source3/smbd/pipes.c
parentbf8cce18c6dba9ed254a256ce3e8827e7f1e1827 (diff)
downloadsamba-e7a100200bf19655f7ebc100ff13ba6d4adfca78.tar.gz
samba-e7a100200bf19655f7ebc100ff13ba6d4adfca78.tar.bz2
samba-e7a100200bf19655f7ebc100ff13ba6d4adfca78.zip
s3:smbd/pipes: avoid passing server_event_context() as event context to np_{read,write}_send
metze
Diffstat (limited to 'source3/smbd/pipes.c')
-rw-r--r--source3/smbd/pipes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index 2ff3779b0e..b680087dd4 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -202,7 +202,7 @@ void reply_pipe_write(struct smb_request *req)
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);
@@ -318,7 +318,7 @@ void reply_pipe_write_and_X(struct smb_request *req)
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);
@@ -425,7 +425,7 @@ void reply_pipe_read_and_X(struct smb_request *req)
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) {