diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-02 15:35:02 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-05 16:33:21 +0100 |
commit | eb8f4b846fe2d1ebf7e5a6adc0622aefe54993cb (patch) | |
tree | 37410b5d2a35a1967b5f28338322d95f5fa49837 /source4/rpc_server/unixinfo | |
parent | 53b7665fc2dc4db911e6245132b8f5799e63e3e9 (diff) | |
download | samba-eb8f4b846fe2d1ebf7e5a6adc0622aefe54993cb.tar.gz samba-eb8f4b846fe2d1ebf7e5a6adc0622aefe54993cb.tar.xz samba-eb8f4b846fe2d1ebf7e5a6adc0622aefe54993cb.zip |
source4: Use wbc_xids_to_sids
Signed-off-by: Volker Lendecke <vl@samba.org>
Change-Id: Ib1b1a7fcd881510e3fb4e5da29391e3d9392fa17
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/rpc_server/unixinfo')
-rw-r--r-- | source4/rpc_server/unixinfo/dcesrv_unixinfo.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c index 260d5abe920..821f53c495b 100644 --- a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c +++ b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c @@ -79,7 +79,6 @@ static NTSTATUS dcesrv_unixinfo_UidToSid(struct dcesrv_call_state *dce_call, dce_call->context->private_data, struct wbc_context); struct id_map *ids; - struct composite_context *ctx; uint32_t uid; NTSTATUS status; @@ -100,10 +99,7 @@ static NTSTATUS dcesrv_unixinfo_UidToSid(struct dcesrv_call_state *dce_call, ids->xid.id = uid; ids->xid.type = ID_TYPE_UID; - ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids); - NT_STATUS_HAVE_NO_MEMORY(ctx); - - status = wbc_xids_to_sids_recv(ctx, &ids); + status = wbc_xids_to_sids(wbc_ctx->event_ctx, ids, 1); NT_STATUS_NOT_OK_RETURN(status); r->out.sid = ids->sid; @@ -148,7 +144,6 @@ static NTSTATUS dcesrv_unixinfo_GidToSid(struct dcesrv_call_state *dce_call, dce_call->context->private_data, struct wbc_context); struct id_map *ids; - struct composite_context *ctx; uint32_t gid; NTSTATUS status; @@ -169,10 +164,7 @@ static NTSTATUS dcesrv_unixinfo_GidToSid(struct dcesrv_call_state *dce_call, ids->xid.id = gid; ids->xid.type = ID_TYPE_GID; - ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids); - NT_STATUS_HAVE_NO_MEMORY(ctx); - - status = wbc_xids_to_sids_recv(ctx, &ids); + status = wbc_xids_to_sids(wbc_ctx->event_ctx, ids, 1); NT_STATUS_NOT_OK_RETURN(status); r->out.sid = ids->sid; |