summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-16 11:44:36 +0200
committerAndreas Schneider <asn@samba.org>2010-06-16 12:03:46 +0200
commit47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83 (patch)
treea9fc7a7ec7899ad42a9059a6c452232e0a52e63c /source3/rpc_server
parent18f3e5113ae18e120770ba93b0d36a7b176b0c52 (diff)
downloadsamba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.tar.gz
samba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.tar.bz2
samba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.zip
s3-spoolss: Provide a memory context for clean_up_driver_struct().
If we use a stack variable to setup spoolss_AddDriverInfoCtr this would segfault with a talloc bad magic value.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index e03bb348ea..6fd369562a 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7377,7 +7377,7 @@ WERROR _spoolss_AddPrinterDriverEx(pipes_struct *p,
}
DEBUG(5,("Cleaning driver's information\n"));
- err = clean_up_driver_struct(p, r->in.info_ctr);
+ err = clean_up_driver_struct(p->mem_ctx, p, r->in.info_ctr);
if (!W_ERROR_IS_OK(err))
goto done;