osmo-msc/openbsc/tests
Jacob Erlbeck 555b2e5ac1 sgsn: Don't allow mmctx == NULL in sgsn_update_subscriber_data
Currently, sgsn_update_subscriber_data can be called with mmctx ==
NULL and will find and associate the right context (if present) based
on the subscriber's IMSI. This will not happen in regular use
any more, since sgsn_update_subscriber_data will only be called when
subscribers are used (auth mode 'remote') and in this case
gprs_subscr_get_or_create_by_mmctx will already be called by
sgsn_auth_request. Therefore, MM context and subscriber are always
associated except for some test cases and experimental VTY usage.
The current implementation of sgsn_update_subscriber_data also causes
additional complexity for the deletion on MM contexts to avoid a
ipossible double-free MM contexts.

This commit removes the MM context <-> subscriber association code
from sgsn_update_subscriber_data. That function must always be called
with mmctx != NULL, now. To avoid problems with VTY and test usage,
the calling subscriber function now only call
sgsn_update_subscriber_data when mmctx != NULL, since the purpose of
that function is to update that state of an existing MM context after
subscriber data has been changed.

Sponsored-by: On-Waves ehf
2015-01-28 20:42:52 +01:00
..
abis Partial revert "Fix most compiler warnings with gcc-4.9.2" 2015-01-02 11:42:38 +01:00
bsc move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
bsc-nat nat: Introduce a config free for the test and fix valgrind issues 2014-08-29 11:42:34 +02:00
bsc-nat-trie move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
channel msc: Add and use gsm_subscriber_group 2014-12-05 14:59:02 +01:00
db db: Extend the test to mark a SMS as delivered and verify it 2014-12-25 17:33:30 +01:00
gbproxy Partial revert "Fix most compiler warnings with gcc-4.9.2" 2015-01-02 11:42:38 +01:00
gprs gprs: Add GPRS timer conversion functions 2015-01-26 08:41:52 +01:00
gsm0408 sms: Increment the RP Message Reference for each transaction 2014-02-20 11:35:56 +01:00
mgcp mgcp/sdp: Session name must not be empty pick an empty one 2014-11-20 23:17:32 +01:00
sgsn sgsn: Don't allow mmctx == NULL in sgsn_update_subscriber_data 2015-01-28 20:42:52 +01:00
smpp smpp: Fix the make distcheck for smpp 2013-09-19 11:08:43 +02:00
subscr msc: Add per subscriber keep_in_ram flag 2014-12-09 09:08:28 +01:00
trau mncc: Complete definitions for all speech traffic frames at MNCC interface 2014-03-20 22:36:16 +01:00
Makefile.am bsc/test: Add tests for gsm_subscriber base 2014-12-05 15:16:59 +01:00
atlocal.in sgsn: Add boilerplate code for a SGSN test 2014-10-09 17:22:34 +02:00
ctrl_test_runner.py nat: Fix copy and paste in the test code 2014-12-09 19:13:00 +01:00
smpp_test_runner.py nitb/smpp: Add simple test runner for the issues found by daniel 2014-03-06 23:48:17 +01:00
testsuite.at bsc/test: Add tests for gsm_subscriber base 2014-12-05 15:16:59 +01:00
vty_test_runner.py sgsn: Restructure the 'update-subscriber' command 2015-01-20 16:14:01 +01:00