s3: Fix Coverity ID 242719 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_pol without opening it

source3/rpcclient/cmd_samr.c

index 0fc24e19165b96ce7414087c2b3095cc1e186445..196e40fd3349c7e368a4ed84bed8bd711b45002c 100644 (file)
@@ -1054,7 +1054,8 @@ static NTSTATUS cmd_samr_enum_als_groups(struct rpc_pipe_client *cli,
                                          TALLOC_CTX *mem_ctx,
                                          int argc, const char **argv)
 {
-       struct policy_handle connect_pol, domain_pol;
+       struct policy_handle connect_pol;
+       struct policy_handle domain_pol = { 0, };
        NTSTATUS status, result;
        uint32 start_idx, num_als_groups, i;
        uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;