git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b6ac6
)
s3-net: Make sure that the data blob is initialized.
author
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 10:54:11 +0000
(12:54 +0200)
committer
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 10:56:13 +0000
(12:56 +0200)
Found by clang-analyzer.
source3/utils/net_rpc_printer.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index f98a6239a308bce320f462349f8cbde1b30c87c6..b75b195f4eceb8400dc7d505d6515e13f5a45d33 100644
(file)
--- a/
source3/utils/net_rpc_printer.c
+++ b/
source3/utils/net_rpc_printer.c
@@
-2424,6
+2424,8
@@
NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c,
struct regval_blob *value;
DATA_BLOB blob;
+ ZERO_STRUCT(blob);
+
/* although samba replies with sane data in most cases we
should try to avoid writing wrong registry data */