diff options
author | Björn Gustavsson <[email protected]> | 2014-04-24 16:43:32 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-05-06 11:40:09 +0200 |
commit | 54fdff3af5d023133b55cc4c068c218fd0caf63f (patch) | |
tree | 14d4ec4d2acae7f8206f07a59a88d0d5d7bb7287 /lib | |
parent | 8eadd0297d9676a9004673f9efa2574283942f9f (diff) | |
download | otp-54fdff3af5d023133b55cc4c068c218fd0caf63f.tar.gz otp-54fdff3af5d023133b55cc4c068c218fd0caf63f.tar.bz2 otp-54fdff3af5d023133b55cc4c068c218fd0caf63f.zip |
Set.py: Correct illegal DEFAULT value
If SetIn is defined like this:
SetIn ::= SET {
boolIn BOOLEAN,
intIn INTEGER
}
then it may not be used with an empty DEFAULT value like this:
SetDef1 ::= SET {
set1 SetIn DEFAULT {}
}
The ASN.1 compiler prints an warning message, but still generates
code. (That should be fixed.)
Fix the incorrect ASN.1 specification by making the
components in SetIn optional:
SetIn ::= SET
{
boolIn BOOLEAN OPTIONAL,
intIn INTEGER OPTIONAL
}
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/Set.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Set.py b/lib/asn1/test/asn1_SUITE_data/Set.py index 4062f6b804..3928004e6b 100644 --- a/lib/asn1/test/asn1_SUITE_data/Set.py +++ b/lib/asn1/test/asn1_SUITE_data/Set.py @@ -80,8 +80,8 @@ SetOpt3 ::= SET SetIn ::= SET { - boolIn BOOLEAN, - intIn INTEGER + boolIn BOOLEAN OPTIONAL, + intIn INTEGER OPTIONAL } |