Commit 4b247a8d authored by Robert Ricci's avatar Robert Ricci

Fix a bug noticed by Jon - make sure to not iterate off the end of the

list, which could happen if we somehow saw an ack for a packet whose
send() we missed (ie. the kernel dropped it on the way in to pcap).
parent fbda5f5d
......@@ -147,7 +147,10 @@ void PacketSensor::localAck(PacketInfo * packet)
{
ackedSendTime = pos->timestamp;
}
++pos;
if (pos != limit)
{
++pos;
}
}
if (!found)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment