osmo-msc/src
Neels Hofmeyr c5e0ace751 vlr_lu_fsm: guard against using the wrong fi
Various functions in vlr_lu_fsm.c belong to one of the four FSMs defined in
that file. After the recent error was uncovered where the lu_fsm called
lu_compl_fsm()'s termination function, I want to make sure it's correct.

Introduce distinct inline functions to dereference the respective fi->priv
pointers, each asserting that the fi indeed belongs to the proper FSM. Use
those *everywhere* to dereference fi->priv.

From this patch on, we are sure beyond doubt that we are not inadvertently
passing an fi pointer to the wrong FSM's handling functions, though we will
only catch this at runtime -- but then will immediately know the reason.

vlr_lu_fsm.c is the only file defining more than one FSM, so the other FSM
definitions are already reasonably safe.

Change-Id: I7419a780ff2d8b02efc4195bb1702818e4df181c
2018-03-02 03:21:14 +01:00
..
libcommon remove dead code (gsm_parse_reg) 2018-02-14 09:04:56 +01:00
libcommon-cs implement support for 3-digit MNC with leading zeros 2018-02-28 19:30:14 +01:00
libmsc implement support for 3-digit MNC with leading zeros 2018-02-28 19:30:14 +01:00
libvlr vlr_lu_fsm: guard against using the wrong fi 2018-03-02 03:21:14 +01:00
osmo-msc implement support for 3-digit MNC with leading zeros 2018-02-28 19:30:14 +01:00
utils Remove utils imported from openbsc, fix building remaining util smpp_mirror 2017-12-05 19:16:32 +00:00
Makefile.am split off osmo-msc: remove files, apply build, rename 2017-08-29 12:51:19 +00:00