* [gentoo-commits] gentoo-x86 commit in net-dns/fpdns/files: fpdns-0.10.0_pre20130404.ro-header.patch
@ 2014-04-26 19:26 Wolfram Schlich (wschlich)
0 siblings, 0 replies; only message in thread
From: Wolfram Schlich (wschlich) @ 2014-04-26 19:26 UTC (permalink / raw
To: gentoo-commits
wschlich 14/04/26 19:26:54
Added: fpdns-0.10.0_pre20130404.ro-header.patch
Log:
version bump, fixes bug #309189
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.1 net-dns/fpdns/files/fpdns-0.10.0_pre20130404.ro-header.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/fpdns/files/fpdns-0.10.0_pre20130404.ro-header.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/fpdns/files/fpdns-0.10.0_pre20130404.ro-header.patch?rev=1.1&content-type=text/plain
Index: fpdns-0.10.0_pre20130404.ro-header.patch
===================================================================
From ca0391377ad7150e61ff300cb5195c97a154233b Mon Sep 17 00:00:00 2001
From: Jakob Schlyter <jakob@kirei.se>
Date: Wed, 28 Aug 2013 10:24:11 +0200
Subject: [PATCH] do not set header counters unless changed
---
lib/Net/DNS/Fingerprint.pm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/Net/DNS/Fingerprint.pm b/lib/Net/DNS/Fingerprint.pm
index d4a2e5a..e096d42 100644
--- a/lib/Net/DNS/Fingerprint.pm
+++ b/lib/Net/DNS/Fingerprint.pm
@@ -2171,10 +2171,12 @@ sub fp2header {
$header->ad(shift @list);
$header->cd(shift @list);
$header->rcode(shift @list);
- $header->qdcount(shift @list);
- $header->ancount(shift @list);
- $header->nscount(shift @list);
- $header->arcount(shift @list);
+
+ my ($qdcount, $ancount, $nscount, $arcount) = @list;
+ $header->qdcount($qdcount) unless $qdcount == $header->qdcount;
+ $header->qdcount($ancount) unless $ancount == $header->ancount;
+ $header->qdcount($nscount) unless $nscount == $header->nscount;
+ $header->qdcount($arcount) unless $arcount == $header->arcount;
}
sub probe {
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-26 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 19:26 [gentoo-commits] gentoo-x86 commit in net-dns/fpdns/files: fpdns-0.10.0_pre20130404.ro-header.patch Wolfram Schlich (wschlich)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox