From 6da3bc7c0afd0352fb46b271b9e6a01aaa3c5cfe Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 4 Mar 2017 21:09:12 +0100 Subject: 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 --- openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbsc/tests/msc_vlr/msc_vlr_test_umts_authen.c') 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"); -- cgit v1.2.3