summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-09 17:06:48 +0100
committerVolker Lendecke <vl@samba.org>2009-11-09 17:24:46 +0100
commita0b9e40b2c8f88da6a8191b049c71a14838b644e (patch)
treee9393c80c5f17d441ee6268cee6b397bfa305711
parent8eac3075b604d5d0938e2a087a154bb6546d78b1 (diff)
downloadsamba-a0b9e40b2c8f88da6a8191b049c71a14838b644e.tar.gz
samba-a0b9e40b2c8f88da6a8191b049c71a14838b644e.tar.bz2
samba-a0b9e40b2c8f88da6a8191b049c71a14838b644e.zip
s3: Try to avoid dns searches with an empty site
-rw-r--r--source3/libsmb/dsgetdcname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 180547063a..76a52c8923 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -1138,7 +1138,7 @@ NTSTATUS dsgetdcname(TALLOC_CTX *mem_ctx,
return NT_STATUS_INVALID_PARAMETER;
}
- if (!site_name) {
+ if ((site_name == NULL) || (site_name[0] == '\0')) {
query_site = sitename_fetch(domain_name);
} else {
query_site = SMB_STRDUP(site_name);