diff options
author | Günther Deschner <gd@samba.org> | 2008-10-21 02:24:07 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-27 19:33:22 +0100 |
commit | 8bcc939a8c2762abaa31029411e5f2d3e1c385f4 (patch) | |
tree | fb6cdbc0c9f55d8d1ac87d6251319b0e8aa48b13 /source4/rpc_server/lsa | |
parent | ea6b4865ea292e36f7c8b2b645c08886ed50fe2b (diff) | |
download | samba-8bcc939a8c2762abaa31029411e5f2d3e1c385f4.tar.gz samba-8bcc939a8c2762abaa31029411e5f2d3e1c385f4.tar.bz2 samba-8bcc939a8c2762abaa31029411e5f2d3e1c385f4.zip |
s4-lsa: merge lsa_LookupPrivName from s3 lsa idl.
Guenther
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 7936369df4..d88a87632a 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -2711,6 +2711,7 @@ static NTSTATUS dcesrv_lsa_LookupPrivName(struct dcesrv_call_state *dce_call, { struct dcesrv_handle *h; struct lsa_policy_state *state; + struct lsa_StringLarge *name; const char *privname; DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY); @@ -2726,11 +2727,14 @@ static NTSTATUS dcesrv_lsa_LookupPrivName(struct dcesrv_call_state *dce_call, return NT_STATUS_NO_SUCH_PRIVILEGE; } - r->out.name = talloc(mem_ctx, struct lsa_StringLarge); - if (r->out.name == NULL) { + name = talloc(mem_ctx, struct lsa_StringLarge); + if (name == NULL) { return NT_STATUS_NO_MEMORY; } - r->out.name->string = privname; + + name->string = privname; + + *r->out.name = name; return NT_STATUS_OK; } |