aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon Cornish <[email protected]>2019-02-22 16:41:58 -0800
committerSimon Cornish <[email protected]>2019-02-25 21:27:36 -0800
commit0657dc8546cafd26c609ed2e474ff15fc6ac6c65 (patch)
tree6a7977bc8609c1f0fa9965d324550524e8d77615 /lib
parentd3efb32359e59b2996cde916436ffa56aa2ffb19 (diff)
downloadotp-0657dc8546cafd26c609ed2e474ff15fc6ac6c65.tar.gz
otp-0657dc8546cafd26c609ed2e474ff15fc6ac6c65.tar.bz2
otp-0657dc8546cafd26c609ed2e474ff15fc6ac6c65.zip
Fix for DEFAULT used with OCTET STRING
Diffstat (limited to 'lib')
-rw-r--r--lib/asn1/src/asn1ct_check.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl
index 321980e5e4..1a7551b8d8 100644
--- a/lib/asn1/src/asn1ct_check.erl
+++ b/lib/asn1/src/asn1ct_check.erl
@@ -2140,6 +2140,9 @@ normalize_octetstring(S, Value) ->
_ ->
asn1_error(S, illegal_octet_string_value)
end;
+ Val when is_binary(Val) ->
+ %% constant default value
+ Val;
_ ->
asn1_error(S, illegal_octet_string_value)
end.