diff options
Diffstat (limited to 'skeletons/constr_SET.c')
-rw-r--r-- | skeletons/constr_SET.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/skeletons/constr_SET.c b/skeletons/constr_SET.c index c5bb201d..2ee3b81a 100644 --- a/skeletons/constr_SET.c +++ b/skeletons/constr_SET.c @@ -671,7 +671,8 @@ SET_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, /* * Get the next part of the XML stream. */ - ch_size = xer_next_token(buf_ptr, size, &ch_type); + ch_size = xer_next_token(&ctx->context, + buf_ptr, size, &ch_type); switch(ch_size) { case -1: RETURN(RC_FAIL); case 0: RETURN(RC_WMORE); @@ -695,12 +696,11 @@ SET_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, case -1: ctx->phase = 4; RETURN(RC_FAIL); - case 0: - XER_ADVANCE(ch_size); - continue; case 1: - XER_ADVANCE(ch_size); ctx->phase = 1; + /* Fall through */ + case 0: + XER_ADVANCE(ch_size); continue; case 2: ctx->phase = 1; |