From c506fe54f093cdf3be0be8512c49cd1b1ee6b9c5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 10 Feb 2011 13:09:44 +0100 Subject: [PATCH] fix asn1_EXTERNAL1994_fixup() use non-contradictory guard expression --- src/map_masq.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map_masq.erl b/src/map_masq.erl index 8bca069..a683a87 100644 --- a/src/map_masq.erl +++ b/src/map_masq.erl @@ -268,7 +268,7 @@ handle_tcap_components_acc([Component|Tail], NewComponents) -> % preserve the encoding (octet string, single ASN1 type, ...). During encoding, % it then uses the OCTTET-STRING encoding, which is different from the MAP % customary single-ASN1-type format. -asn1_EXTERNAL1994_fixup({'EXTERNAL', DirRef, IndRef, Data}) when is_list(Data),is_binary(Data) -> +asn1_EXTERNAL1994_fixup({'EXTERNAL', DirRef, IndRef, Data}) when is_list(Data);is_binary(Data) -> % our trick is as follows: we simply convert back to 1990 format, and explicitly % set the single-ASN1-type encoding. asn1rt:s 'enc_EXTERNAL'() will detect this #'EXTERNAL'{'direct-reference' = DirRef, 'indirect-reference' = IndRef,