From 7f10505ad94d1023e060e777eed1f83fdfb4f50b Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Thu, 7 Sep 2023 09:46:16 +0200 Subject: [PATCH] fix access to LCG priority --- srsue/src/stack/mac_nr/proc_bsr_nr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsue/src/stack/mac_nr/proc_bsr_nr.cc b/srsue/src/stack/mac_nr/proc_bsr_nr.cc index 70e40e5b5..3da20eca6 100644 --- a/srsue/src/stack/mac_nr/proc_bsr_nr.cc +++ b/srsue/src/stack/mac_nr/proc_bsr_nr.cc @@ -248,9 +248,9 @@ int proc_bsr_nr::setup_lcid(uint32_t lcid, uint32_t new_lcg, uint32_t priority) // Check that the new priority doesn't not already exist auto it = lcg_priorities.find(priority); - if (it != lcg_priorities.end() and *it != new_lcg) { + if (it != lcg_priorities.end() and it->second != new_lcg) { logger.error( - "BSR: Invalid config. Priority=%d already configured for lcg=%d", priority, *it); + "BSR: Invalid config. Priority=%d already configured for lcg=%d", priority, it->second); return SRSRAN_ERROR; }