Commit f0f04d15 authored by Lev Walkin's avatar Lev Walkin

fixed reintroduced problem

parent 00d36020
...@@ -151,8 +151,7 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, ...@@ -151,8 +151,7 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
if(rval.code != RC_OK) { if(rval.code != RC_OK) {
ASN_DEBUG("%s tagging check failed: %d", ASN_DEBUG("%s tagging check failed: %d",
td->name, rval.code); td->name, rval.code);
consumed_myself += rval.consumed; return rval;
RETURN(rval.code);
} }
if(ctx->left >= 0) { if(ctx->left >= 0) {
...@@ -330,6 +329,8 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, ...@@ -330,6 +329,8 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
/* /*
* Correctly finished with <0><0>. * Correctly finished with <0><0>.
*/ */
ADVANCE(2);
ctx->left++;
continue; continue;
} }
} else { } else {
...@@ -338,8 +339,7 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, ...@@ -338,8 +339,7 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
RETURN(RC_FAIL); RETURN(RC_FAIL);
} }
ADVANCE(2); /* UNREACHABLE */
ctx->left++;
} }
NEXT_PHASE(ctx); NEXT_PHASE(ctx);
......
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