mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
dns_server: Do not look for a wildcard for @
This query is made for every record returned via BIND9 DLZ. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13191 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
071ad56aef
commit
948791aca7
@ -545,6 +545,16 @@ WERROR dns_common_wildcard_lookup(struct ldb_context *samdb,
|
||||
return DNS_ERR(NAME_ERROR);
|
||||
}
|
||||
|
||||
/* Don't look for a wildcard for @ */
|
||||
if (name->length == 1 && name->data[0] == '@') {
|
||||
return dns_common_lookup(samdb,
|
||||
mem_ctx,
|
||||
dn,
|
||||
records,
|
||||
num_records,
|
||||
NULL);
|
||||
}
|
||||
|
||||
werr = dns_name_check(
|
||||
mem_ctx,
|
||||
strlen((const char*)name->data),
|
||||
|
Loading…
x
Reference in New Issue
Block a user