Fix DNSSEC and DNAME.

Do the correct things to validate replies which
include a DNAME record.

Thanks to Graham Clinch for pointing this out.
This commit is contained in:
Simon Kelley
2025-03-15 09:05:47 +00:00
parent 67e07b7fe8
commit 105c25e561
4 changed files with 117 additions and 18 deletions

View File

@@ -426,7 +426,7 @@ int hostname_order(const char *a, const char *b)
int hostname_isequal(const char *a, const char *b)
{
return hostname_order(a, b) == 0;
return strlen(a) == strlen(b) && hostname_order(a, b) == 0;
}
/* is b equal to or a subdomain of a return 2 for equal, 1 for subdomain */