From 460f9ef7da1db11b104fdfe635ebcbd8a071f205 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 1 Aug 2016 00:38:36 +0200 Subject: fsm: Make sure we call 'onenter' of new state, not old state Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f --- src/fsm.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3