aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-05-30 13:35:26 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-05 11:16:44 +0200
commit6f1f3097ff01a491792308df2d885990fd9dcb0c (patch)
treee6b845e714be11c15bad01659eabab7db82227da
parent6c202b211d3e0fa4b9168666384da2ba06214e02 (diff)
make sur to not cause badrecord exception on returnResult with asn1_NOVALUE
-rw-r--r--src/mangle_tt_sri_sm.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mangle_tt_sri_sm.erl b/src/mangle_tt_sri_sm.erl
index a38cc22..33e452c 100644
--- a/src/mangle_tt_sri_sm.erl
+++ b/src/mangle_tt_sri_sm.erl
@@ -137,6 +137,9 @@ get_tcap_operation(#'MapSpecificPDUs_begin_components_SEQOF_basicROS_returnResul
{returnResult, Res#'MapSpecificPDUs_begin_components_SEQOF_basicROS_returnResult_result'.opcode};
get_tcap_operation(#'MapSpecificPDUs_continue_components_SEQOF_basicROS_returnResult'{result=Res}) ->
{returnResult, Res#'MapSpecificPDUs_continue_components_SEQOF_basicROS_returnResult_result'.opcode};
+get_tcap_operation(#'MapSpecificPDUs_end_components_SEQOF_basicROS_returnResult'{result=asn1_NOVALUE}) ->
+ % FIXME: check for asn1_NOVALUE in other cases
+ {returnResult, undefined};
get_tcap_operation(#'MapSpecificPDUs_end_components_SEQOF_basicROS_returnResult'{result=Res}) ->
{returnResult, Res#'MapSpecificPDUs_end_components_SEQOF_basicROS_returnResult_result'.opcode};
get_tcap_operation(#'MapSpecificPDUs_begin_components_SEQOF_returnResultNotLast'{result=Res}) ->