git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3-dns: prevent from potentially doing wrong SRV DNS lookups.
[ira/wip.git]
/
source3
/
libads
/
dns.c
diff --git
a/source3/libads/dns.c
b/source3/libads/dns.c
index 5eae10ec28593fe572d08bea993a4080de26f959..39454fcebc099199e1edaecc1b62c7e2fe4ad981 100644
(file)
--- a/
source3/libads/dns.c
+++ b/
source3/libads/dns.c
@@
-756,7
+756,7
@@
static NTSTATUS ads_dns_query_internal(TALLOC_CTX *ctx,
int *numdcs )
{
char *name;
- if (sitename) {
+ if (sitename
&& strlen(sitename)
) {
name = talloc_asprintf(ctx, "%s._tcp.%s._sites.%s._msdcs.%s",
servicename, sitename,
dc_pdc_gc_domains, realm);