This PR removes any message that relates to an Interest from the RIOT message queue of the the CCN-lite thread, when removing this Interest (i.e., by ccnl_interest_remove()). This fixes a rare case that occurs when a retransmission message is queued and can't be processed before the pending Interest is satisfied, which will call ccnl_interest_remove(). Without this fix, the message will be processed at some point and reference an Interest that doesn't exist anymore.
Contribution description
This PR removes any message that relates to an Interest from the RIOT message queue of the the CCN-lite thread, when removing this Interest (i.e., by
ccnl_interest_remove()
). This fixes a rare case that occurs when a retransmission message is queued and can't be processed before the pending Interest is satisfied, which will callccnl_interest_remove()
. Without this fix, the message will be processed at some point and reference an Interest that doesn't exist anymore.