Repair bug with sequence number timeouts. There was access to a data field after erasing...
diff --git a/apps/ccnx-consumer.cc b/apps/ccnx-consumer.cc
index af71758..edac879 100644
--- a/apps/ccnx-consumer.cc
+++ b/apps/ccnx-consumer.cc
@@ -143,8 +143,9 @@
m_seqTimeouts.get<i_timestamp> ().begin ();
if (entry->time + rto <= now) // timeout expired?
{
+ uint32_t seqNo = entry->seq;
m_seqTimeouts.get<i_timestamp> ().erase (entry);
- OnTimeout (entry->seq);
+ OnTimeout (seqNo);
}
else
break; // nothing else to do. All later packets need not be retransmitted