From: bert hubert Date: Wed, 7 Sep 2016 11:42:00 +0000 (+0200) Subject: deal with pcap formats which tell them they captured _more_ than your packet X-Git-Tag: dnsdist-1.1.0-beta2~134^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173dcfb0e940497399325b332ca95fccba7a5b55;p=thirdparty%2Fpdns.git deal with pcap formats which tell them they captured _more_ than your packet --- diff --git a/pdns/dnspcap.cc b/pdns/dnspcap.cc index ae82d8a010..a3d04fc9c1 100644 --- a/pdns/dnspcap.cc +++ b/pdns/dnspcap.cc @@ -92,7 +92,7 @@ try checkedFreadSize(d_buffer, d_pheader.caplen); - if(d_pheader.caplen!=d_pheader.len) { + if(d_pheader.caplen < d_pheader.len) { d_runts++; continue; }