s3-net: Make sure that the data blob is initialized.
authorAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 10:54:11 +0000 (12:54 +0200)
committerAndreas 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

index f98a6239a308bce320f462349f8cbde1b30c87c6..b75b195f4eceb8400dc7d505d6515e13f5a45d33 100644 (file)
@@ -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 */