]> granicus.if.org Git - pdns/commitdiff
fix off-by-one in dnsreplay --packet-limit
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 8 May 2017 17:31:43 +0000 (19:31 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 8 May 2017 17:31:43 +0000 (19:31 +0200)
pdns/dnsreplay.cc

index 4e6874ecb4393156dda88aa44c376f9311600f9e..2e1135214f40519af362fcc2d618a17be1e12a18 100644 (file)
@@ -808,7 +808,7 @@ try
       if(sendPacketFromPR(pr, remote, stamp))
         count++;
     } 
-    if(packetLimit && count > packetLimit) 
+    if(packetLimit && count >= packetLimit) 
       break;
 
     mental_time=packet_ts;