]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix Coverity ID 242722 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 10 May 2012 07:11:57 +0000 (09:11 +0200)
In an error path we are closing domain_handle without opening it

source3/rpcclient/cmd_samr.c

index ab263e765f86b2ccfef51ec0c5678c8dc2dde554..7b8dda2ae8e0cbe72d0af2b72109ebbde064da3f 100644 (file)
@@ -3230,7 +3230,7 @@ static NTSTATUS cmd_samr_get_dispinfo_idx(struct rpc_pipe_client *cli,
 {
        NTSTATUS status, result;
        struct policy_handle connect_handle;
-       struct policy_handle domain_handle;
+       struct policy_handle domain_handle = { 0, };
        uint16_t level = 1;
        struct lsa_String name;
        uint32_t idx = 0;