[MERGED] libosmocore[master]: fsm: Make sure we call 'onenter' of new state, not old state

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Jul 31 22:43:42 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: fsm: Make sure we call 'onenter' of new state, not old state
......................................................................


fsm: Make sure we call 'onenter' of new state, not old state

Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f
---
M src/fsm.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/fsm.c b/src/fsm.c
index 67db182..31ed194 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -326,6 +326,7 @@
 
 	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;

-- 
To view, visit https://gerrit.osmocom.org/633
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list