summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-10 20:03:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:27 -0500
commit22b30d2a372bc9a018c592991a6478dc963e670d (patch)
tree1275576274bf5ffff50b0191feba37b3162c01e2
parent3c5811c272db98d037892d26cf5eb22275c1e6e4 (diff)
downloadsamba-22b30d2a372bc9a018c592991a6478dc963e670d.tar.gz
samba-22b30d2a372bc9a018c592991a6478dc963e670d.tar.bz2
samba-22b30d2a372bc9a018c592991a6478dc963e670d.zip
r24316: Fix an uninitialized read
Jerry, please check this! Thanks, Volker (This used to be commit db1b89072c3f214c3cb4be844cd7b417e5361615)
-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 f8e109fb34..b50e1e7558 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -2275,6 +2275,7 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *ctx, fstring value, uint
*type = REG_DWORD;
if ( !(*data = TALLOC_ARRAY(ctx, uint8, sizeof(uint32) )) )
return WERR_NOMEM;
+ SIVAL(*data, 0, 0x00);
*needed = 0x4;
return WERR_OK;
}