diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-09 10:56:54 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-05-10 09:11:57 +0200 |
commit | b2ea585c1459c4ab142378aa973c4979bc52b990 (patch) | |
tree | cb1e22e4ea8678f0581cd4b6d091fc6b52b1766d | |
parent | a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a (diff) | |
download | samba-b2ea585c1459c4ab142378aa973c4979bc52b990.tar.gz samba-b2ea585c1459c4ab142378aa973c4979bc52b990.tar.bz2 samba-b2ea585c1459c4ab142378aa973c4979bc52b990.zip |
s3: Fix Coverity ID 242720 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index a0db1aa573..0fc24e1916 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -970,7 +970,8 @@ static NTSTATUS cmd_samr_enum_dom_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_dom_groups, i; uint32 access_mask = MAXIMUM_ALLOWED_ACCESS; |