From fd4d435442429630969c34d20900c89c7ec1dbb7 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 5 Jan 2023 19:37:05 +0100 Subject: 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 --- tests/sgsn/sgsn_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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", ""); -- cgit v1.2.3