Commit bdaae77e authored by Lev Walkin's avatar Lev Walkin

graceful termination

parent 395d0bf9
...@@ -1078,9 +1078,9 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, void *chunk_buf, size_t ...@@ -1078,9 +1078,9 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, void *chunk_buf, size_t
*buf++ = ch; *buf++ = ch;
continue; continue;
} }
*buf = 0; /* JIC */ chunk_size = (p - (char *)chunk_buf);
/* Processing stalled: need more data */ /* Processing stalled: need more data */
return (p - (char *)chunk_buf); break;
} }
st->size = buf - st->buf; st->size = buf - st->buf;
...@@ -1120,7 +1120,9 @@ OCTET_STRING__decode_xer(asn_codec_ctx_t *opt_codec_ctx, ...@@ -1120,7 +1120,9 @@ OCTET_STRING__decode_xer(asn_codec_ctx_t *opt_codec_ctx,
*sptr = (void *)st; *sptr = (void *)st;
if(!st) goto sta_failed; if(!st) goto sta_failed;
st_allocated = 1; st_allocated = 1;
} else st_allocated = 0; } else {
st_allocated = 0;
}
if(!st->buf) { if(!st->buf) {
/* This is separate from above section */ /* This is separate from above section */
st->buf = (uint8_t *)CALLOC(1, 1); st->buf = (uint8_t *)CALLOC(1, 1);
......
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