rrc_nr: temporary fix of heap-use-after free

see https://github.com/softwareradiosystems/srsLTE/issues/3545
This commit is contained in:
Andre Puschmann 2021-10-23 16:24:14 +02:00
parent 87459bad17
commit be388aa53f
1 changed files with 2 additions and 2 deletions

View File

@ -613,6 +613,8 @@ void rrc_nr::ue::activity_timer_expired(const activity_timeout_type_t type)
{
parent->logger.info("Activity timer for rnti=0x%x expired after %d ms", rnti, activity_timer.time_elapsed());
state = rrc_nr_state_t::RRC_IDLE;
switch (type) {
case UE_INACTIVITY_TIMEOUT:
// TODO: Add action to be executed
@ -627,8 +629,6 @@ void rrc_nr::ue::activity_timer_expired(const activity_timeout_type_t type)
parent->logger.error(
"Unhandled reason for activity timer expiration. rnti=0x%x, cause %d", rnti, static_cast<unsigned>(type));
}
state = rrc_nr_state_t::RRC_IDLE;
}
std::string rrc_nr::ue::to_string(const activity_timeout_type_t& type)