mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '393-fix-a-net-dns-version-quirk-in-the-resolver-system-test' into 'master'
Fix a Net::DNS version quirk in the "resolver" system test Closes #393 See merge request isc-projects/bind9!485
This commit is contained in:
commit
96256e260a
1 changed files with 5 additions and 1 deletions
|
|
@ -73,7 +73,11 @@ sub handleUDP {
|
|||
$packet->header->tc(0);
|
||||
}
|
||||
|
||||
return $packet->data;
|
||||
# Net::DNS versions < 0.68 insert an ./ANY RR into the QUESTION section
|
||||
# if the latter is empty. Make sure Net::DNS version does not
|
||||
# influence the return value of this function by returning the query ID
|
||||
# and flags generated by Net::DNS with 8 zero bytes appended.
|
||||
return substr($packet->data, 0, 4) . "\x00" x 8;
|
||||
}
|
||||
|
||||
sub handleTCP {
|
||||
|
|
|
|||
Loading…
Reference in a new issue