Commit 4ccce3da authored by Lev Walkin's avatar Lev Walkin

restore XER restartability

parent c10d30a3
......@@ -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) {
......
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