aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src
diff options
context:
space:
mode:
authorSimon Cornish <[email protected]>2019-02-22 18:18:12 -0800
committerSimon Cornish <[email protected]>2019-02-25 21:27:36 -0800
commit5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe (patch)
treeaddb76d99d966141497a13b757d730062a50a6d8 /lib/asn1/src
parentf82ce9edf8726e5bd6e6ed24c4535b1b16f67a3a (diff)
downloadotp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.tar.gz
otp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.tar.bz2
otp-5c9dd56af4e051003ce7b8b5dd4cf50bf9eefdbe.zip
Fix compiling value of CHOICE with extensions
Diffstat (limited to 'lib/asn1/src')
-rw-r--r--lib/asn1/src/asn1ct_check.erl3
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=