summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-30 00:09:09 +0200
committerGünther Deschner <gd@samba.org>2011-05-02 15:03:43 +0200
commitcd5b2b242b39437081592d41d297bce0668b40ab (patch)
tree5c5e8399be25f25191c974a6de0774a5993545b3 /source3/rpc_server
parent89ceb489784358f9476bb6be0ad3ab9ea4d1b9c2 (diff)
downloadsamba-cd5b2b242b39437081592d41d297bce0668b40ab.tar.gz
samba-cd5b2b242b39437081592d41d297bce0668b40ab.tar.bz2
samba-cd5b2b242b39437081592d41d297bce0668b40ab.zip
s3-printing: avoid using pipes_struct when only session_info is needed.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 15630ff93d..e8db6063f8 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -8012,12 +8012,12 @@ WERROR _spoolss_AddPrinterDriverEx(struct pipes_struct *p,
}
DEBUG(5,("Cleaning driver's information\n"));
- err = clean_up_driver_struct(p->mem_ctx, p, r->in.info_ctr);
+ err = clean_up_driver_struct(p->mem_ctx, p->session_info, r->in.info_ctr);
if (!W_ERROR_IS_OK(err))
goto done;
DEBUG(5,("Moving driver to final destination\n"));
- err = move_driver_to_download_area(p, r->in.info_ctr);
+ err = move_driver_to_download_area(p->session_info, r->in.info_ctr);
if (!W_ERROR_IS_OK(err)) {
goto done;
}