]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: net: Return an error when no name servers were returned by the lookup so that...
authorRichard Sharpe <rsharpe@samba.org>
Sun, 15 May 2016 17:28:04 +0000 (10:28 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 28 May 2016 02:34:20 +0000 (04:34 +0200)
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat May 28 04:34:20 CEST 2016 on sn-devel-144

source3/utils/net_ads.c

index 90af09edd3100919e09af8a7b2be5735a0dc88d1..d565df1289243bba0804977ac5f74cb3ecdb8f58 100644 (file)
@@ -1209,6 +1209,9 @@ static NTSTATUS net_update_dns_internal(struct net_context *c,
                if ( !NT_STATUS_IS_OK(status) || (ns_count == 0)) {
                        DEBUG(3,("net_update_dns_internal: Failed to find name server for the %s "
                         "realm\n", ads->config.realm));
+                       if (ns_count == 0) {
+                               status = NT_STATUS_UNSUCCESSFUL;
+                       }
                        goto done;
                }