aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-06-07 06:18:15 +0200
committerBjörn Gustavsson <[email protected]>2013-06-07 07:05:34 +0200
commit31225eed84e107f9b23bb8089a304523e9a95648 (patch)
tree74c4a4e522313845b71db2216fa7dc2737d0beb4 /lib/asn1
parent65ca805b615ef076e77f28316f4d4cd5ee11479c (diff)
downloadotp-31225eed84e107f9b23bb8089a304523e9a95648.tar.gz
otp-31225eed84e107f9b23bb8089a304523e9a95648.tar.bz2
otp-31225eed84e107f9b23bb8089a304523e9a95648.zip
UPER: Correct encoding of ENUMERATED with more than 63 extended values
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index 30c9ab9365..69d9d51bf1 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -250,7 +250,8 @@ emit_enc_enumerated_case(Erules, C, EnumName, Count) ->
enc_ext_and_val(per, E, F, Args) ->
[E|apply(asn1ct_eval_per, F, Args)];
enc_ext_and_val(uper, E, F, Args) ->
- <<E:1,(apply(asn1ct_eval_uper, F, Args))/bitstring>>.
+ Bs = list_to_bitstring([apply(asn1ct_eval_uper, F, Args)]),
+ <<E:1,Bs/bitstring>>.
%% Object code generating for encoding and decoding