summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-07-25 17:09:29 +0000
committerJeremy Allison <jra@samba.org>2000-07-25 17:09:29 +0000
commitfcbf69495784000861d432c13217702cc28884f8 (patch)
treed86360aff4267a94d9a697d3822946f5f18b253a /source3/rpc_server
parent5a5ef183799dd84ff453db849e929533e709fd0b (diff)
downloadsamba-fcbf69495784000861d432c13217702cc28884f8.tar.gz
samba-fcbf69495784000861d432c13217702cc28884f8.tar.bz2
samba-fcbf69495784000861d432c13217702cc28884f8.zip
Added some error checking and returns to the new 'move' code.
Jeremy. (This used to be commit 0bd88d304cd773e0bbf3e6f7fedcb3b544d41cbe)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 99ed18677a..53df5dfee4 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4176,7 +4176,8 @@ uint32 _spoolss_addprinterdriver(pipes_struct *p, const UNISTR2 *server_name,
clean_up_driver_struct(driver, level);
DEBUG(5,("Moving driver to final destination\n"));
- move_driver_to_download_area(driver, level, &user);
+ if(!move_driver_to_download_area(driver, level, &user))
+ return ERROR_ACCESS_DENIED;
if (add_a_printer_driver(driver, level)!=0)
return ERROR_ACCESS_DENIED;
@@ -4190,7 +4191,7 @@ uint32 _spoolss_addprinterdriver(pipes_struct *p, const UNISTR2 *server_name,
****************************************************************************/
static void fill_driverdir_1(DRIVER_DIRECTORY_1 *info, char *name)
{
- init_unistr(&(info->name), name);
+ init_unistr(&info->name, name);
}
/****************************************************************************