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.6.5~1^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df939e980073b08858c7380c623c3d39b9dfb415;p=thirdparty%2Frspamd.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 49496a9d8d..d79d68144e 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) {