summaryrefslogtreecommitdiff
path: root/source4/winbind
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-02 18:10:26 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-02 18:15:10 +0100
commit0e95c9a1eb82a50281c94b226fbae2ac3210e5f5 (patch)
tree6917a268be15dcb0379bf6e7a37f771cb6360327 /source4/winbind
parenta54c558ca6e6eee1c16817bfb9d9b7dcabd578b8 (diff)
downloadsamba-0e95c9a1eb82a50281c94b226fbae2ac3210e5f5.tar.gz
samba-0e95c9a1eb82a50281c94b226fbae2ac3210e5f5.tar.bz2
samba-0e95c9a1eb82a50281c94b226fbae2ac3210e5f5.zip
Revert "s4 winbind: Copy SID to avoid "discard const" warning"
This reverts commit 102028ec722d942d7f91eb92e8da4f1480d140d1. state->ctx is the composite_context, which is a temporary context! metze
Diffstat (limited to 'source4/winbind')
-rw-r--r--source4/winbind/wb_init_domain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c
index 637cf10bb7..5953474c52 100644
--- a/source4/winbind/wb_init_domain.c
+++ b/source4/winbind/wb_init_domain.c
@@ -402,8 +402,7 @@ static void init_domain_recv_samr(struct composite_context *ctx)
talloc_steal(state->domain->libnet_ctx->samr.pipe, state->domain->samr_binding);
state->domain->libnet_ctx->samr.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state->domain->libnet_ctx->samr.name = state->domain->info->name;
- state->domain->libnet_ctx->samr.sid = dom_sid_dup(state->ctx,
- state->domain->info->sid);
+ state->domain->libnet_ctx->samr.sid = state->domain->info->sid;
composite_done(state->ctx);
}