]> granicus.if.org Git - pdns/commitdiff
deal with pcap formats which tell them they captured _more_ than your packet
authorbert hubert <bert.hubert@powerdns.com>
Wed, 7 Sep 2016 11:42:00 +0000 (13:42 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Wed, 7 Sep 2016 11:42:00 +0000 (13:42 +0200)
pdns/dnspcap.cc

index ae82d8a010c2e27dbcb1877015ae34665b28c5ac..a3d04fc9c14ef7bb1354af812c65e3d1d163b089 100644 (file)
@@ -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;
     }