From 556e14a07fb4722dc91fcdc14846129b6fed0d14 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 30 Jan 2012 22:55:13 +0100 Subject: [PATCH] TCO: Fix ets lookup when receiving END transaction --- TCAP/src/ITU/tcap_tco_server.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCAP/src/ITU/tcap_tco_server.erl b/TCAP/src/ITU/tcap_tco_server.erl index e7982d9..930e648 100644 --- a/TCAP/src/ITU/tcap_tco_server.erl +++ b/TCAP/src/ITU/tcap_tco_server.erl @@ -382,7 +382,7 @@ handle_cast({'N', 'UNITDATA', indication, UdataParams}, State) % end; {ok, {'end', TPDU = #'End'{dtid = Dtid}}} -> % DTID assigned? - case catch ets:lookup(tcap_transaction, decode_tid(Dtid), 2) of + case ets:lookup_element(tcap_transaction, decode_tid(Dtid), 2) of {error, _Reason} -> error_logger:error_report(["DTID not found in received N-END", {dtid, Dtid},