s3: Fix Coverity ID 242725 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Wed, 9 May 2012 08:51:54 +0000 (10:51 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 10 May 2012 07:11:57 +0000 (09:11 +0200)
Not a functional bug, but we copy all of the "key" structure inside
dcerpc_winreg_CreateKey.

source3/utils/net_rpc_conf.c

index 4e2118d1c10e8143c8b9c905aa76f39b87e9a9a3..8c5717c519dec516a87f81115e8924655bd00cd1 100644 (file)
@@ -1084,6 +1084,7 @@ static NTSTATUS rpc_conf_drop_internal(struct net_context *c,
                goto error;
        }
 
+       ZERO_STRUCT(wkey);
        wkey.name = keyname;
        ZERO_STRUCT(wkeyclass);
        wkeyclass.name = "";