summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-08-01 00:38:36 +0200
committerHarald Welte <laforge@gnumonks.org>2016-08-01 00:38:36 +0200
commit460f9ef7da1db11b104fdfe635ebcbd8a071f205 (patch)
treeeea04c8d3ea625b5a59056cea084608b5dfdac9a
parentf92e44c5399d8914aad58bd2c74005b3640c5a9d (diff)
fsm: Make sure we call 'onenter' of new state, not old state
Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f
-rw-r--r--src/fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 67db1825..31ed1948 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -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;