mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-dns: prevent from potentially doing wrong SRV DNS lookups.
With an empty sitename we asked for e.g. _ldap._tcp.._sites.dc._msdcs.AD.EXAMPLE.COM Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Dec 21 17:23:25 CET 2011 on sn-devel-104
This commit is contained in:
parent
53d54f99b0
commit
bfbb389332
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user