diff options
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 1 |
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; } |