From 0f08e9d92222b97cfea3fa5c9ac633790cc4f76d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Apr 2011 18:46:58 +0200 Subject: 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. --- source3/printing/printspoolss.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3') 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) { -- cgit