s3-net: when all DNS servers fail to operate, the overal DNS registration result
authorGünther Deschner <gd@samba.org>
Mon, 10 Oct 2011 11:06:51 +0000 (13:06 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 10 Oct 2011 13:59:20 +0000 (15:59 +0200)
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

source3/utils/net_ads.c

index bb78ecbf12eef5ad65fbd3d144d3b19e77a959f7..c17367a0a40711295571a49b0a13edcd6937b089 100644 (file)
@@ -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 */