summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:18:00 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 14:35:37 +0100
commit9fcbe3a65c6f30754f3f705c3e0b4a4ae150c679 (patch)
tree2c5d01380a271c5b368fa87c21d0c1b7a574fbec /source3/rpcclient
parent3e1a1616ec2b51993e988e43ecf0c0f78b1607e5 (diff)
downloadsamba-9fcbe3a65c6f30754f3f705c3e0b4a4ae150c679.tar.gz
samba-9fcbe3a65c6f30754f3f705c3e0b4a4ae150c679.tar.bz2
samba-9fcbe3a65c6f30754f3f705c3e0b4a4ae150c679.zip
s3: Remove some pointless uses of string_sid_talloc
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 11ff046f6d..488f8f545c 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -1843,6 +1843,7 @@ static NTSTATUS cmd_lsa_create_trusted_domain(struct rpc_pipe_client *cli,
{
NTSTATUS status;
struct policy_handle handle, trustdom_handle;
+ struct dom_sid sid;
struct lsa_DomainInfo info;
if (argc < 3) {
@@ -1859,7 +1860,8 @@ static NTSTATUS cmd_lsa_create_trusted_domain(struct rpc_pipe_client *cli,
}
init_lsa_StringLarge(&info.name, argv[1]);
- info.sid = string_sid_talloc(mem_ctx, argv[2]);
+ info.sid = &sid;
+ string_to_sid(&sid, argv[2]);
status = rpccli_lsa_CreateTrustedDomain(cli, mem_ctx,
&handle,