diff options
-rw-r--r-- | src/libserver/re_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |