summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-04-02 18:46:58 +0200
committerVolker Lendecke <vl@samba.org>2011-04-05 12:26:29 +0200
commit0f08e9d92222b97cfea3fa5c9ac633790cc4f76d (patch)
tree3ba8a5c28b0ffca19e06f168a4699132c80da25a
parent4b7895698557149504773f4e74e8d4eb81c3b093 (diff)
downloadsamba-0f08e9d92222b97cfea3fa5c9ac633790cc4f76d.tar.gz
samba-0f08e9d92222b97cfea3fa5c9ac633790cc4f76d.tar.bz2
samba-0f08e9d92222b97cfea3fa5c9ac633790cc4f76d.zip
s3: Fix print_spool_end
We have to use the spoolss pipe instance opened in print_spool_open, otherwise the spoolss server won't be able to find the right printer and job.
-rw-r--r--source3/printing/printspoolss.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c
index 01137df7ef..352fcb8b6b 100644
--- a/source3/printing/printspoolss.c
+++ b/source3/printing/printspoolss.c
@@ -277,18 +277,6 @@ void print_spool_end(files_struct *fsp, enum file_close_type close_type)
WERROR werr;
struct dcerpc_binding_handle *b = NULL;
- status = rpc_pipe_open_interface(fsp->conn,
- &ndr_table_spoolss.syntax_id,
- fsp->conn->session_info,
- &fsp->conn->sconn->client_id,
- fsp->conn->sconn->msg_ctx,
- &fsp->conn->spoolss_pipe);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(0, ("print_spool_end: "
- "Failed to get spoolss pipe [%s]\n",
- nt_errstr(status)));
- return;
- }
b = fsp->conn->spoolss_pipe->binding_handle;
switch (close_type) {