Commit ed50211b authored by Lev Walkin's avatar Lev Walkin

natural constraint is only valid in the root of enumeration

parent 5d7af845
......@@ -179,7 +179,7 @@ NativeEnumerated_encode_uper(asn_TYPE_descriptor_t *td,
if(ct->flags & APC_EXTENSIBLE) {
if(per_put_few_bits(po, inext, 1))
_ASN_ENCODE_FAILED;
ct = 0;
if(inext) ct = 0;
} else if(inext) {
_ASN_ENCODE_FAILED;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment