diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-13 13:35:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-13 13:35:37 +0100 |
commit | f19f9f3acd4f6b3c904174a9146bee3127e01e83 (patch) | |
tree | bfc63eeac469899925a2d6019531fd109ab0b87a /src | |
parent | 8adb4632a9869704776fccb4e40a48ef140f0be4 (diff) | |
download | rspamd-f19f9f3acd4f6b3c904174a9146bee3127e01e83.tar.gz rspamd-f19f9f3acd4f6b3c904174a9146bee3127e01e83.zip |
[Fix] Fix bug in processing of pcre regexps
Diffstat (limited to 'src')
-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) { |