From: Vsevolod Stakhov Date: Sat, 21 Oct 2017 11:13:56 +0000 (+0100) Subject: [Fix] Deal with another case when processing exceptions X-Git-Tag: 1.7.0~534 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b36b03e17525007976d21f02d0e5949691e3c439;p=rspamd.git [Fix] Deal with another case when processing exceptions MFH: rspamd-1.6 --- diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c index 49496a9d8..d79d68144 100644 --- a/src/libstat/tokenizers/tokenizers.c +++ b/src/libstat/tokenizers/tokenizers.c @@ -270,8 +270,16 @@ set_token: process_exception: if (token->len == 0 && processed > 0) { + /* + * We have processed something before the next exception, so + * continue processing on next iteration of this function call + */ token->len = p - token->begin; g_assert (token->len > 0); + + *cur = p; + + return TRUE; } if (ex->type == RSPAMD_EXCEPTION_URL) {