summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-07-12 18:10:24 +0000
committerJeremy Allison <jra@samba.org>2002-07-12 18:10:24 +0000
commit8ba2c4e55d783587a5a6064dc2d48e4deff16fd3 (patch)
treec83f0efcadad1a29575a5870a469074215d88446 /source3
parent695b346ab5123c9b4de4951a01add884795ede89 (diff)
downloadsamba-8ba2c4e55d783587a5a6064dc2d48e4deff16fd3.tar.gz
samba-8ba2c4e55d783587a5a6064dc2d48e4deff16fd3.tar.bz2
samba-8ba2c4e55d783587a5a6064dc2d48e4deff16fd3.zip
We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex. Jeremy. (This used to be commit d3c73e59708eeb1ee4642fb31fcfc0ec2fd28070)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 32b2dc8b9e..68c792f8b0 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6953,6 +6953,9 @@ WERROR _spoolss_addprinterdriverex(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVEREX *
return WERR_ACCESS_DENIED;
/* just pass the information off to _spoolss_addprinterdriver() */
+ ZERO_STRUCT(q_u_local);
+ ZERO_STRUCT(r_u_local);
+
q_u_local.server_name_ptr = q_u->server_name_ptr;
copy_unistr2(&q_u_local.server_name, &q_u->server_name);
q_u_local.level = q_u->level;