Second part of fix for bug 8953 - winbind can hang as nbt_getdc() has no timeout.
authorHerb Lewis <hlewis@panasas.com>
Tue, 22 May 2012 23:40:17 +0000 (16:40 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 23 May 2012 01:49:35 +0000 (03:49 +0200)
If we're running with SEC_ADS and we don't get a cldap response from
the server when querying its name, don't fall back to NetBIOS requests
as they're unlikely to succeed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 23 03:49:36 CEST 2012 on sn-devel-104

source3/winbindd/winbindd_cm.c

index cf1eb8bd0e93a114e6c062c6ee15cb4313b7e274..f36cceaccc5c53997717caea84e595d8f86b4830 100644 (file)
@@ -1158,6 +1158,7 @@ static bool dcip_to_name(TALLOC_CTX *mem_ctx,
                }
 
                ads_destroy( &ads );
+               return false;
        }
 #endif