[PATCH] 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:39:44 UTC 2016


Review at  https://gerrit.osmocom.org/633

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/33/633/1

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: newchange
Gerrit-Change-Id: I1a0181c25d9debe935e86d97ddffc24675e56a5f
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list