aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2007-07-23 09:57:00 +0000
committerLev Walkin <vlm@lionet.info>2007-07-23 09:57:00 +0000
commited50211b36683414d348f7b6d9e6f40e9de2902b (patch)
treef81d9445fd79ef30100ce31b565d660ef146a0c8
parent5d7af845a306347df4da295ea041ba962895ac5a (diff)
natural constraint is only valid in the root of enumeration
-rw-r--r--skeletons/NativeEnumerated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/NativeEnumerated.c b/skeletons/NativeEnumerated.c
index 12b079e1..b6b47e13 100644
--- a/skeletons/NativeEnumerated.c
+++ b/skeletons/NativeEnumerated.c
@@ -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;
}