possible fix for bug 288 to repcent using an uninitialized cli_state struct
authorGerald Carter <jerry@samba.org>
Fri, 15 Aug 2003 20:12:40 +0000 (20:12 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 15 Aug 2003 20:12:40 +0000 (20:12 +0000)
(This used to be commit d09dc91c024d718a8ddb6b7f08c7fe84716beda4)

source3/rpc_server/srv_spoolss_nt.c

index 725672da69d5a89c7420d6da2d287d5dee0c0fa7..646aac347c973986af3fd92cf3e332bf08327641 100644 (file)
@@ -2668,6 +2668,8 @@ static BOOL srv_spoolss_replyopenprinter(int snum, const char *printer,
 
                fstrcpy(unix_printer, printer+2); /* the +2 is to strip the leading 2 backslashs */
 
+               ZERO_STRUCT(notify_cli);
+
                if(!spoolss_connect_to_client(&notify_cli, client_ip, unix_printer))
                        return False;