summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-19 17:40:21 +0100
committerGünther Deschner <gd@samba.org>2009-02-19 19:19:50 +0100
commitbcb5331fa7e8711e22c9543c59efa442143a6cc6 (patch)
tree95db9cc95eaf209ab22b481bb571fef05012a2c2 /source3
parent4f803502ef0bca3fee5017469f858bea702b069d (diff)
downloadsamba-bcb5331fa7e8711e22c9543c59efa442143a6cc6.tar.gz
samba-bcb5331fa7e8711e22c9543c59efa442143a6cc6.tar.bz2
samba-bcb5331fa7e8711e22c9543c59efa442143a6cc6.zip
s3-spoolss: _spoolss_AddPrinterEx needs to wipe out policy handle upon failure.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d72e2708a5..8420c3765c 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7861,6 +7861,7 @@ static WERROR spoolss_addprinterex_level_2(pipes_struct *p,
/* Handle open failed - remove addition. */
del_a_printer(printer->info_2->sharename);
free_a_printer(&printer,2);
+ ZERO_STRUCTP(handle);
return WERR_ACCESS_DENIED;
}