diff options
author | Günther Deschner <gd@samba.org> | 2008-06-04 18:05:15 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-04 18:05:15 +0200 |
commit | bb58d33b6d8c21d8fad457f6d1777baad65d181c (patch) | |
tree | fea83ebbebada69d9b426eb3dafb23446b182f7c | |
parent | 7d35e4e294a00288ba83d3f9c4f1ce9a23260311 (diff) | |
download | samba-bb58d33b6d8c21d8fad457f6d1777baad65d181c.tar.gz samba-bb58d33b6d8c21d8fad457f6d1777baad65d181c.tar.bz2 samba-bb58d33b6d8c21d8fad457f6d1777baad65d181c.zip |
libnetjoin: correctly copy returned lsa policy sid.
Guenther
(This used to be commit f9e5450c9492b0f35bd90040739007963e765ab1)
-rw-r--r-- | source3/libnet/libnet_join.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 1ab75d7882..3b2bce9fcf 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -690,7 +690,8 @@ static NTSTATUS libnet_join_lookup_dc_rpc(TALLOC_CTX *mem_ctx, r->out.netbios_domain_name = info->dns.name.string; r->out.dns_domain_name = info->dns.dns_domain.string; r->out.forest_name = info->dns.dns_forest.string; - r->out.domain_sid = info->dns.sid; + r->out.domain_sid = sid_dup_talloc(mem_ctx, info->dns.sid); + NT_STATUS_HAVE_NO_MEMORY(r->out.domain_sid); } if (!NT_STATUS_IS_OK(status)) { @@ -703,7 +704,8 @@ static NTSTATUS libnet_join_lookup_dc_rpc(TALLOC_CTX *mem_ctx, } r->out.netbios_domain_name = info->account_domain.name.string; - r->out.domain_sid = info->account_domain.sid; + r->out.domain_sid = sid_dup_talloc(mem_ctx, info->account_domain.sid); + NT_STATUS_HAVE_NO_MEMORY(r->out.domain_sid); } rpccli_lsa_Close(pipe_hnd, mem_ctx, &lsa_pol); |