From f19f9f3acd4f6b3c904174a9146bee3127e01e83 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 13 Sep 2018 13:35:37 +0100 Subject: [Fix] Fix bug in processing of pcre regexps --- src/libserver/re_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 268376e4d..8c4cceaff 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -498,7 +498,7 @@ rspamd_re_cache_process_pcre (struct rspamd_re_runtime *rt, } if (len == 0) { - len = strlen (in); + return rt->results[id]; } if (rt->cache->max_re_data > 0 && len > rt->cache->max_re_data) { -- cgit v1.2.3