diff options
author | Simon Cornish <[email protected]> | 2019-02-22 18:18:12 -0800 |
---|---|---|
committer | Simon Cornish <[email protected]> | 2019-02-25 21:27:36 -0800 |
commit | 5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe (patch) | |
tree | addb76d99d966141497a13b757d730062a50a6d8 /lib/asn1 | |
parent | f82ce9edf8726e5bd6e6ed24c4535b1b16f67a3a (diff) | |
download | otp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.tar.gz otp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.tar.bz2 otp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.zip |
Fix compiling value of CHOICE with extensions
Diffstat (limited to 'lib/asn1')
-rw-r--r-- | lib/asn1/src/asn1ct_check.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl index 1a7551b8d8..9ced905294 100644 --- a/lib/asn1/src/asn1ct_check.erl +++ b/lib/asn1/src/asn1ct_check.erl @@ -2754,8 +2754,9 @@ check_type(S=#state{recordtopname=TopName},Type,Ts) when is_record(Ts,type) -> TempNewDef#newt{type={'SEQUENCE OF',check_sequenceof(S,Type,Components)}, tag= merge_tags(Tag,?TAG_CONSTRUCTED(?N_SEQUENCE))}; - {'CHOICE',Components} -> + {'CHOICE',_} = Choice-> Ct = maybe_illicit_implicit_tag(S, choice, Tag), + Components = get_choice_components(S, Choice), TempNewDef#newt{type={'CHOICE',check_choice(S,Type,Components)},tag=Ct}; Set when is_record(Set,'SET') -> RecordName= |