diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-08-01 00:38:36 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-01 00:38:36 +0200 |
commit | 460f9ef7da1db11b104fdfe635ebcbd8a071f205 (patch) | |
tree | eea04c8d3ea625b5a59056cea084608b5dfdac9a | |
parent | f92e44c5399d8914aad58bd2c74005b3640c5a9d (diff) |
fsm: Make sure we call 'onenter' of new state, not old state
Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f
-rw-r--r-- | src/fsm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -326,6 +326,7 @@ int osmo_fsm_inst_state_chg(struct osmo_fsm_inst *fi, uint32_t new_state, LOGPFSM(fi, "state_chg to %s\n", osmo_fsm_state_name(fsm, new_state)); fi->state = new_state; + st = &fsm->states[new_state]; if (timeout_secs) { fi->T = T; |