summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:56:54 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commita4b7a1eb26dedb0902c9b0cf447e4f061b877c7a (patch)
treefcbeacf43b8decc08f9f891f93f63af15d9e2b32 /source3
parent1e3b5ec9518b302dd13c0c99c23f0a4489469d58 (diff)
downloadsamba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.tar.gz
samba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.tar.bz2
samba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.zip
s3: Fix Coverity ID 242721 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 7b8dda2ae8..a0db1aa573 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -880,7 +880,8 @@ static NTSTATUS cmd_samr_enum_dom_users(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_dom_users, i;
struct samr_SamArray *dom_users = NULL;