diff options
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 4 | ||||
-rw-r--r-- | source3/smbd/pipes.c | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index ed723436e1..c0d9963183 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4720,6 +4720,7 @@ NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name, const struct tsocket_address *local_address, const struct tsocket_address *remote_address, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, struct fake_file_handle **phandle); bool np_read_in_progress(struct fake_file_handle *handle); struct tevent_req *np_write_send(TALLOC_CTX *mem_ctx, struct event_context *ev, diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index c96d705f76..ea04164f13 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -537,6 +537,7 @@ NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name, const struct tsocket_address *local_address, const struct tsocket_address *remote_address, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, struct fake_file_handle **phandle) { const char **proxy_list; @@ -582,8 +583,7 @@ NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name, } p = make_internal_rpc_pipe_p(handle, &syntax, client_address, - server_info, - smbd_messaging_context()); + server_info, msg_ctx); handle->type = FAKE_FILE_TYPE_NAMED_PIPE; handle->private_data = p; diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 17d2678e35..d321c7a73d 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -69,7 +69,9 @@ NTSTATUS open_np_file(struct smb_request *smb_req, const char *name, status = np_open(fsp, name, conn->sconn->local_address, conn->sconn->remote_address, - conn->server_info, &fsp->fake_file_handle); + conn->server_info, + conn->sconn->msg_ctx, + &fsp->fake_file_handle); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("np_open(%s) returned %s\n", name, nt_errstr(status))); |