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; }