From c6fa011eec962949748f9b6cf489be5717cc0588 Mon Sep 17 00:00:00 2001 From: Francisco Date: Sat, 20 Feb 2021 11:11:07 +0000 Subject: [PATCH] fix pdcp discard timer list creation --- lib/src/upper/pdcp_entity_lte.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/upper/pdcp_entity_lte.cc b/lib/src/upper/pdcp_entity_lte.cc index 42f3292f4..d2ca37527 100644 --- a/lib/src/upper/pdcp_entity_lte.cc +++ b/lib/src/upper/pdcp_entity_lte.cc @@ -49,7 +49,7 @@ pdcp_entity_lte::pdcp_entity_lte(srsue::rlc_interface_pdcp* rlc_, uint32_t discard_time_value = static_cast(cfg.discard_timer); if (discard_time_value > 0) { discard_timers.reserve(maximum_pdcp_sn + 2); // the last SN is for status report - for (uint32_t sn = 0; sn < discard_timers.size(); ++sn) { + for (uint32_t sn = 0; sn < maximum_pdcp_sn + 2; ++sn) { discard_timers.emplace_back(task_sched.get_unique_timer()); discard_callback discard_fnc(this, sn); discard_timers[sn].set(discard_time_value, discard_fnc);