diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-02 15:35:02 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-02-10 10:57:11 +0100 |
commit | d0932a1ae089fda0d41be21a9916caeca7c0c233 (patch) | |
tree | 0ec4db8b1f8c951c616ea4c87f0de7c334264548 /source4/rpc_server | |
parent | f275ce4e4367478b488810491c7bcd993c37caf1 (diff) | |
download | samba-d0932a1ae089fda0d41be21a9916caeca7c0c233.tar.gz samba-d0932a1ae089fda0d41be21a9916caeca7c0c233.tar.xz samba-d0932a1ae089fda0d41be21a9916caeca7c0c233.zip |
source4: Use wbc_xids_to_sids
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source4/rpc_server')
-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; |