aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-04 21:09:12 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 15:32:29 +0100
commit6da3bc7c0afd0352fb46b271b9e6a01aaa3c5cfe (patch)
treebcc02d39b7d384fb6a8d6cb27a56f33f41f4d3c8 /openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c
parent9267123b882d1e35a4cb6a3bf746d33c4e84c8ce (diff)
fix: vlr: clear last_tuple when receiving auth tuples
When receiving more than one auth tuple during AUTS resync, the VLR would go on to send the second tuple instead of the first. The unit test didn't catch that because its fake HLR message contained only one tuple. Adjust the test to send two tuples to catch this error. Fix the code to clear vlr_subscr->last_tuple whenever new auth tuples are received. Change-Id: I1f84e7d2619aa8d9a0dcdfb50745feeb040264b9
Diffstat (limited to 'openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c')
-rw-r--r--openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c b/openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c
index 9b4d0188d..219be3ab7 100644
--- a/openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c
+++ b/openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c
@@ -398,6 +398,18 @@ void _test_umts_authen_resync(enum ran_type via_ran)
"2510" "02a83f62e9470000660d51afc75f169d"
/* TL RES */
"2708" "1df5f0b4f22b696e"
+ /* TL TL rand */
+ "0362" "2010" "ac21d34937b4e1142a2c757af2949319"
+ /* TL sres TL kc */
+ "2104" "7818bfdc" "2208" "d175571f41f314a4"
+ /* TL 3G IK */
+ "2310" "ff8edbceb6dd24799c77c3b9a6790c10"
+ /* TL 3G CK */
+ "2410" "157c39022ca9d885a7f0766a7dfee448"
+ /* TL AUTN */
+ "2510" "8a43b91898e500002cf354c6f5d1f8c3"
+ /* TL RES */
+ "2708" "f748a7078f5018db"
,NULL);
VERBOSE_ASSERT(auth_request_sent, == true, "%d");