summaryrefslogtreecommitdiff
path: root/source3/libnet/libnet_dssync.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-26 23:24:25 +0200
committerGünther Deschner <gd@samba.org>2008-06-27 02:01:03 +0200
commite58b2db024293b0d76441e19e0afd4734b550aa8 (patch)
treed6f2fc80fd8639aca14c214dd103453988f75196 /source3/libnet/libnet_dssync.c
parent92df9ae39329a2c442c55d20ba9015fe23b071e3 (diff)
downloadsamba-e58b2db024293b0d76441e19e0afd4734b550aa8.tar.gz
samba-e58b2db024293b0d76441e19e0afd4734b550aa8.tar.bz2
samba-e58b2db024293b0d76441e19e0afd4734b550aa8.zip
libnet_dssync: add output filename and dns_domain_name to dssync struct.
Guenther (This used to be commit c16e1820f86f105853aa855eda322ba6cbff3a84)
Diffstat (limited to 'source3/libnet/libnet_dssync.c')
-rw-r--r--source3/libnet/libnet_dssync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c
index 1fb30d796a..b596da816a 100644
--- a/source3/libnet/libnet_dssync.c
+++ b/source3/libnet/libnet_dssync.c
@@ -298,6 +298,12 @@ static NTSTATUS libnet_dssync_lookup_nc(TALLOC_CTX *mem_ctx,
ctx->nc_dn = talloc_strdup(mem_ctx, ctr.ctr1->array[0].result_name);
NT_STATUS_HAVE_NO_MEMORY(ctx->nc_dn);
+ if (!ctx->dns_domain_name) {
+ ctx->dns_domain_name = talloc_strdup_upper(mem_ctx,
+ ctr.ctr1->array[0].dns_domain_name);
+ NT_STATUS_HAVE_NO_MEMORY(ctx->dns_domain_name);
+ }
+
return NT_STATUS_OK;
}