fix access to LCG priority

master
Francisco Paisana 1 year ago committed by Carlos Alberto Ruiz Naranjo
parent 8ae0b9bc05
commit 7f10505ad9

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

Loading…
Cancel
Save