more test DLV.

git-svn-id: file:///svn/unbound/trunk@1203 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2008-08-22 10:06:14 +00:00
parent a7cfe2bf65
commit d60b281055
4 changed files with 338 additions and 3 deletions
+4 -1
View File
@@ -677,8 +677,11 @@ find_match(struct entry* entries, ldns_pkt* query_pkt,
}
if(p->match_subdomain) {
if(!get_owner(query_pkt) || !get_owner(reply) ||
(ldns_dname_compare(get_owner(query_pkt),
get_owner(reply)) != 0 &&
!ldns_dname_is_subdomain(
get_owner(query_pkt), get_owner(reply)) != 0) {
get_owner(query_pkt), get_owner(reply))))
{
verbose(3, "bad subdomain\n");
continue;
}