summaryrefslogtreecommitdiffstats
path: root/source4/rpc_server/unixinfo
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server/unixinfo')
-rw-r--r--source4/rpc_server/unixinfo/dcesrv_unixinfo.c12
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;