From 173dcfb0e940497399325b332ca95fccba7a5b55 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 7 Sep 2016 13:42:00 +0200 Subject: [PATCH] deal with pcap formats which tell them they captured _more_ than your packet --- pdns/dnspcap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnspcap.cc b/pdns/dnspcap.cc index ae82d8a01..a3d04fc9c 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; } -- 2.40.0