mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
parser: fix for partial content in routing-only mode
This commit is contained in:
parent
16fdc8691a
commit
fa877024ae
1 changed files with 3 additions and 0 deletions
|
@ -409,6 +409,9 @@ psycParseRC psyc_parse (psycParseState *state, char *oper,
|
|||
else // Search for the terminator.
|
||||
{
|
||||
size_t datac = state->cursor; // start of data
|
||||
if (state->flags & PSYC_PARSE_ROUTING_ONLY)
|
||||
state->startc = datac; // in routing-only mode restart from the start of data
|
||||
|
||||
while (1)
|
||||
{
|
||||
uint8_t nl = state->buffer.ptr[state->cursor] == '\n';
|
||||
|
|
Loading…
Reference in a new issue