From 03d4e2b8f24aea931d0b8b65437f23d220f3c01f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 10 May 2019 00:42:33 +0200 Subject: RAN_Emulation: Fix IMSI table lookup on RANAP paging We need to check explicitly for '== null'. isvalue() is of no help here, as 'null' apparently is a value in TTCN-3. Change-Id: I4b2793937a201c5535051092d871ded6cb053f5f --- library/RAN_Emulation.ttcnpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp index 843cc9e1..9a65eb72 100644 --- a/library/RAN_Emulation.ttcnpp +++ b/library/RAN_Emulation.ttcnpp @@ -585,7 +585,7 @@ runs on RAN_Emulation_CT return template RANAP_PDU { } } client := f_imsi_table_find(oct2hex(imsi), tmsi); - if (isvalue(client)) { + if (client != null) { log("CommonRanapUnitdataCallback: IMSI/TMSI found in table, dispatching to ", client); CLIENT.send(ranap) to client; -- cgit v1.2.3