aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/OPEN_TYPE.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2017-08-27 00:41:58 -0700
committerLev Walkin <vlm@lionet.info>2017-08-27 00:41:58 -0700
commit4ccce3da61db668b7cc6c5a4c4d2dafca53d6f38 (patch)
tree660c2fb7a07a9fb5956e79d65e2acc9c8e17d5b0 /skeletons/OPEN_TYPE.c
parentc10d30a30f6f5f26d402f21a01d464331db2460b (diff)
restore XER restartability
Diffstat (limited to 'skeletons/OPEN_TYPE.c')
-rw-r--r--skeletons/OPEN_TYPE.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skeletons/OPEN_TYPE.c b/skeletons/OPEN_TYPE.c
index fc2571b6..a2c59ffe 100644
--- a/skeletons/OPEN_TYPE.c
+++ b/skeletons/OPEN_TYPE.c
@@ -156,7 +156,7 @@ OPEN_TYPE_xer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
*/
for(;;) {
ch_size = xer_next_token(&xer_context, ptr, size, &ch_type);
- if(ch_size <= 0) {
+ if(ch_size < 0) {
ASN__DECODE_FAILED;
} else {
switch(ch_type) {
@@ -231,7 +231,7 @@ OPEN_TYPE_xer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
*/
for(;;) {
ch_size = xer_next_token(&xer_context, ptr, size, &ch_type);
- if(ch_size <= 0) {
+ if(ch_size < 0) {
ASN__DECODE_FAILED;
} else {
switch(ch_type) {