summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-26 22:09:22 +0000
committerJeremy Allison <jra@samba.org>2000-10-26 22:09:22 +0000
commit9a8749d33aebdb4b5cb705cf250012bfa8cf9238 (patch)
tree4ee2171e4a6284bdd7415a0931b0a2e59870691c /source3/rpc_server
parentb5ac72cc646a981469ee65305da83f273c4cd093 (diff)
downloadsamba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.tar.gz
samba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.tar.bz2
samba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.zip
Added John Reillys patch for error code returns from clean_up_printer_driver_strunct()
calls. Jeremy. (This used to be commit f81a2a03bf435e65e7484ab021f86a8a4f62b656)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 0eb75a7480..ebcccc8cf4 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4722,7 +4722,8 @@ uint32 _spoolss_addprinterdriver(pipes_struct *p, const UNISTR2 *server_name,
convert_printer_driver_info(info, &driver, level);
DEBUG(5,("Cleaning driver's information\n"));
- clean_up_driver_struct(driver, level);
+ if ((err = clean_up_driver_struct(driver, level)) != NT_STATUS_NO_PROBLEMO )
+ goto done;
DEBUG(5,("Moving driver to final destination\n"));
if(!move_driver_to_download_area(driver, level, &user, &err)) {