summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-10 13:06:51 +0200
committerGünther Deschner <gd@samba.org>2011-10-10 15:59:20 +0200
commit7119c8ba1461beafae64ebfe1f26c0e2b893b293 (patch)
treea7699b7d6c2e34846f43385b21760f8a58fb2409
parentf47b4055e808030a8bb941d38ec6b532079f5c0b (diff)
downloadsamba-7119c8ba1461beafae64ebfe1f26c0e2b893b293.tar.gz
samba-7119c8ba1461beafae64ebfe1f26c0e2b893b293.tar.bz2
samba-7119c8ba1461beafae64ebfe1f26c0e2b893b293.zip
s3-net: when all DNS servers fail to operate, the overal DNS registration result
must be a failure. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Oct 10 15:59:20 CEST 2011 on sn-devel-104
-rw-r--r--source3/utils/net_ads.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index bb78ecbf12..c17367a0a4 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1200,6 +1200,8 @@ static NTSTATUS net_update_dns_internal(TALLOC_CTX *ctx, ADS_STRUCT *ads,
for (i=0; i < ns_count; i++) {
+ status = NT_STATUS_UNSUCCESSFUL;
+
/* Now perform the dns update - we'll try non-secure and if we fail,
we'll follow it up with a secure update */