mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
fix: usr: Dig now reports missing query section for opcode QUERY
Query responses should contain the question section with some exceptions. Dig was not reporting this. Closes #4808 Merge branch '4808-have-dig-report-missing-question-section-in-axfr-response' into 'main' Closes #4808 See merge request isc-projects/bind9!9233
This commit is contained in:
commit
7facf967ac
1 changed files with 9 additions and 1 deletions
|
|
@ -4237,7 +4237,15 @@ recv_done(isc_nmhandle_t *handle, isc_result_t eresult, isc_region_t *region,
|
|||
goto keep_query;
|
||||
}
|
||||
|
||||
if (msg->counts[DNS_SECTION_QUESTION] != 0) {
|
||||
if (msg->counts[DNS_SECTION_QUESTION] == 0) {
|
||||
if (l->doing_xfr) {
|
||||
if (query->msg_count == 0) {
|
||||
dighost_warning("missing question section");
|
||||
}
|
||||
} else if (!l->header_only && msg->opcode == dns_opcode_query) {
|
||||
dighost_warning("missing question section");
|
||||
}
|
||||
} else {
|
||||
match = true;
|
||||
for (result = dns_message_firstname(msg, DNS_SECTION_QUESTION);
|
||||
result == ISC_R_SUCCESS && match;
|
||||
|
|
|
|||
Loading…
Reference in a new issue