aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-05 19:37:05 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2023-01-05 19:37:07 +0100
commitfd4d435442429630969c34d20900c89c7ec1dbb7 (patch)
treefa2a7ec9f7aa068a98886f19b5830f76e61e89ce /tests
parent8ec269a0e0bffc53b2447f50bb54f8d6f6bb8fd4 (diff)
Move global apn_list inside struct sgsn_instance
This way apns are managed by the lifcycle of the main global struct sgsn_instance automatically. Change-Id: I8cc8e540cfb64d0f130e9c0aaedf7b0835f8fe16
Diffstat (limited to 'tests')
-rw-r--r--tests/sgsn/sgsn_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sgsn/sgsn_test.c b/tests/sgsn/sgsn_test.c
index e7f820f98..5d4616250 100644
--- a/tests/sgsn/sgsn_test.c
+++ b/tests/sgsn/sgsn_test.c
@@ -1346,6 +1346,7 @@ static void test_apn_matching(void)
struct apn_ctx *actx, *actxs[9];
printf("Testing APN matching\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
actxs[0] = sgsn_apn_ctx_find_alloc("*.test", "");
actxs[1] = sgsn_apn_ctx_find_alloc("*.def.test", "");