[AMF] Fix for switching state when sending Deregistration Request fails

Provide pointer to state machine, instead of pointer to timer structure.
Bug was noticed when switching compiler optimization to -O2.
This commit is contained in:
Bostjan Meglic 2022-09-30 09:12:19 +00:00 committed by Sukchan Lee
parent 4b26dd2a5c
commit f71022ad4a
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ static void common_register_state(ogs_fsm_t *s, amf_event_t *e)
ogs_warn("Retransmission of Deregistration-Request failed. "
"Stop retransmission");
CLEAR_AMF_UE_TIMER(amf_ue->t3522);
OGS_FSM_TRAN(&amf_ue->t3522, &gmm_state_exception);
OGS_FSM_TRAN(&amf_ue->sm, &gmm_state_exception);
} else {
amf_ue->t3522.retry_count++;
ogs_assert(OGS_OK ==