summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-26 16:51:45 +0200
committerVolker Lendecke <vl@samba.org>2008-06-26 16:55:48 +0200
commit8fffa902e06a1ce1f5ca20aab911eed6321f4055 (patch)
tree196b68c2afc9a2efd9fa64c4d186d143353eb685 /source3/rpc_server
parent5a63e1dcb62144dcdf15ab80af6357d5954d27c1 (diff)
downloadsamba-8fffa902e06a1ce1f5ca20aab911eed6321f4055.tar.gz
samba-8fffa902e06a1ce1f5ca20aab911eed6321f4055.tar.xz
samba-8fffa902e06a1ce1f5ca20aab911eed6321f4055.zip
Fix valgrind errors in _spoolss_addprinterdriver
Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please check? Thanks, Volker (cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e) (This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d58b16c206c..cb784a65395 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7858,6 +7858,17 @@ WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u,
goto done;
}
+ switch(level) {
+ case 3:
+ fstrcpy(driver_name,
+ driver.info_3->name ? driver.info_3->name : "");
+ break;
+ case 6:
+ fstrcpy(driver_name,
+ driver.info_6->name ? driver.info_6->name : "");
+ break;
+ }
+
/*
* I think this is where he DrvUpgradePrinter() hook would be
* be called in a driver's interface DLL on a Windows NT 4.0/2k