[SGSN] SNDCP: Fix off-by-one error missing last segment in defrag

When we defragment the segments from the defrage queue, we have
to iterate all the way up to (and including) the last segment number
that we have received.
This commit is contained in:
Harald Welte 2010-07-02 10:11:42 +02:00
parent b87bc86006
commit 993697c8d2
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ static int defrag_segments(struct gprs_sndcp_entity *sne)
npdu = msg->data;
for (seg_nr = 0; seg_nr < sne->defrag.highest_seg; seg_nr++) {
for (seg_nr = 0; seg_nr <= sne->defrag.highest_seg; seg_nr++) {
struct defrag_queue_entry *dqe;
uint8_t *data;