diff options
author | Kai Blin <kai@samba.org> | 2008-12-28 12:04:40 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2008-12-29 12:52:28 +0100 |
commit | 102028ec722d942d7f91eb92e8da4f1480d140d1 (patch) | |
tree | 45479b0f045de53c1dca3e9546fc2e71f99ac978 | |
parent | 1180b6964f07c4f3526892a412b163348a137ccc (diff) | |
download | samba-102028ec722d942d7f91eb92e8da4f1480d140d1.tar.gz samba-102028ec722d942d7f91eb92e8da4f1480d140d1.tar.bz2 samba-102028ec722d942d7f91eb92e8da4f1480d140d1.zip |
s4 winbind: Copy SID to avoid "discard const" warning
-rw-r--r-- | source4/winbind/wb_init_domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c index 5953474c52..637cf10bb7 100644 --- a/source4/winbind/wb_init_domain.c +++ b/source4/winbind/wb_init_domain.c @@ -402,7 +402,8 @@ 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->ctx, + state->domain->info->sid); composite_done(state->ctx); } |