summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-01-06 09:55:09 +0100
committerKai Blin <kai@samba.org>2009-01-06 09:55:49 +0100
commit75e240656407ad194c813e1e7b7a7acf370197ba (patch)
treeb0103b2fb0033feebf998eaa7891cb62d850cf60 /source4
parented5e1e5bd6c968eb98058d5a097ab36ac456141e (diff)
downloadsamba-75e240656407ad194c813e1e7b7a7acf370197ba.tar.gz
samba-75e240656407ad194c813e1e7b7a7acf370197ba.tar.bz2
samba-75e240656407ad194c813e1e7b7a7acf370197ba.zip
s4 winbind: Silence a "discards const" warning
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_init_domain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c
index 5953474c52..676746681f 100644
--- a/source4/winbind/wb_init_domain.c
+++ b/source4/winbind/wb_init_domain.c
@@ -402,7 +402,9 @@ 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 = state->domain->info->sid;
+ state->domain->libnet_ctx->samr.sid = dom_sid_dup(
+ state->domain->libnet_ctx,
+ state->domain->info->sid);
composite_done(state->ctx);
}