summaryrefslogtreecommitdiff
path: root/source3/rpcclient
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
commit74ca9cc957cfd0f9a6c33b6c9cb8d7822ff7e7ff (patch)
tree1233346bffa524716adb5e2a8930e0070361ba83 /source3/rpcclient
parentb2ea585c1459c4ab142378aa973c4979bc52b990 (diff)
downloadsamba-74ca9cc957cfd0f9a6c33b6c9cb8d7822ff7e7ff.tar.gz
samba-74ca9cc957cfd0f9a6c33b6c9cb8d7822ff7e7ff.tar.bz2
samba-74ca9cc957cfd0f9a6c33b6c9cb8d7822ff7e7ff.zip
s3: Fix Coverity ID 242719 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
Diffstat (limited to 'source3/rpcclient')
-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 0fc24e1916..196e40fd33 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -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;