From 4bbbc8ffde0ff52d2268798f83bc2f136731447a Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 4 Feb 2022 17:14:21 +0000 Subject: [PATCH] lib,rlc_am_nr: fixed incorrectly adding to many segments when receiving a status report with an SO. --- lib/src/rlc/rlc_am_nr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index bb8c1cdc5..6fd9404ae 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -1078,7 +1078,7 @@ void rlc_am_nr_tx::handle_control_pdu(uint8_t* payload, uint32_t nof_bytes) for (std::list::iterator segm = pdu.segment_list.begin(); segm != pdu.segment_list.end(); segm++) { - if (segm->so >= nack.so_start && nack.so_end <= (segm->so + segm->payload_len)) { + if (segm->so >= nack.so_start && segm->so < nack.so_end) { rlc_amd_retx_t& retx = retx_queue.push(); retx.sn = nack_sn; retx.sdu_end = pdu.sdu_buf->N_bytes;