summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-11-17 17:30:09 +0100
committerHarald Welte <laforge@osmocom.org>2020-11-17 17:42:23 +0100
commite15299ab20097c6f3603996658cf130b7e80168c (patch)
tree051f1ee84626aed3c5394f9208b260fb1f57f72f /library
parentace3ece7be91f8f36e25913c37aa965181db0853 (diff)
NS_Emulation: Fail if an unsupported NS provider is chosen
This took me quite some time: Tried to use NS_PROVIDER_FR, but the code was compiled without support for it. It just failed silently without printing any error or ever sending any message on the FR link. Change-Id: I96475127a2079830b3456a8e288adf4c6c908887
Diffstat (limited to 'library')
-rw-r--r--library/NS_Emulation.ttcnpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index 19de9d3..2e03880 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -382,6 +382,8 @@ module NS_Emulation {
connect(self:NSCP, vc_NSP_FR:NSE);
vc_NSP_FR.start(NS_Provider_FR.main(g_nsvc_config, g_config, id));
#endif
+ } else {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unsupported NS provider");
}
f_change_state(NSVC_S_DEAD_BLOCKED);