| 1 |
commit ca0391377ad7150e61ff300cb5195c97a154233b |
| 2 |
Author: Jakob Schlyter <[email protected]> |
| 3 |
Date: Wed Aug 28 10:24:11 2013 +0200 |
| 4 |
|
| 5 |
do not set header counters unless changed |
| 6 |
|
| 7 |
diff --git a/lib/Net/DNS/Fingerprint.pm b/lib/Net/DNS/Fingerprint.pm |
| 8 |
index d4a2e5a..e096d42 100644 |
| 9 |
--- a/lib/Net/DNS/Fingerprint.pm |
| 10 |
+++ b/lib/Net/DNS/Fingerprint.pm |
| 11 |
@@ -2171,10 +2171,12 @@ sub fp2header { |
| 12 |
$header->ad(shift @list); |
| 13 |
$header->cd(shift @list); |
| 14 |
$header->rcode(shift @list); |
| 15 |
- $header->qdcount(shift @list); |
| 16 |
- $header->ancount(shift @list); |
| 17 |
- $header->nscount(shift @list); |
| 18 |
- $header->arcount(shift @list); |
| 19 |
+ |
| 20 |
+ my ($qdcount, $ancount, $nscount, $arcount) = @list; |
| 21 |
+ $header->qdcount($qdcount) unless $qdcount == $header->qdcount; |
| 22 |
+ $header->qdcount($ancount) unless $ancount == $header->ancount; |
| 23 |
+ $header->qdcount($nscount) unless $nscount == $header->nscount; |
| 24 |
+ $header->qdcount($arcount) unless $arcount == $header->arcount; |
| 25 |
} |
| 26 |
|
| 27 |
sub probe { |