mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 18:49:59 -04:00
Merge branch '2091-print-out-more-diagnostics-on-dns_name_issubdomain' into 'main'
Print diagnostics on dns_name_issubdomain() failure in fctx_create() Closes #2091 See merge request isc-projects/bind9!4071
This commit is contained in:
commit
aa42c8676f
1 changed files with 8 additions and 1 deletions
|
|
@ -5110,7 +5110,14 @@ fctx_create(dns_resolver_t *res, const dns_name_t *name, dns_rdatatype_t type,
|
|||
|
||||
log_ns_ttl(fctx, "fctx_create");
|
||||
|
||||
INSIST(dns_name_issubdomain(&fctx->name, &fctx->domain));
|
||||
if (!dns_name_issubdomain(&fctx->name, &fctx->domain)) {
|
||||
dns_name_format(&fctx->domain, buf, sizeof(buf));
|
||||
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
||||
"'%s' is not subdomain of '%s'", fctx->info,
|
||||
buf);
|
||||
result = ISC_R_UNEXPECTED;
|
||||
goto cleanup_fcount;
|
||||
}
|
||||
|
||||
fctx->qmessage = NULL;
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENTRENDER,
|
||||
|
|
|
|||
Loading…
Reference in a new issue