]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix bug in processing of pcre regexps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 13 Sep 2018 12:35:37 +0000 (13:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 13 Sep 2018 12:35:37 +0000 (13:35 +0100)
src/libserver/re_cache.c

index 268376e4d540db9dc5f4ca7954e73e6cca04fe3e..8c4cceaff86c47977bead1afcaaa62f1ac850cd3 100644 (file)
@@ -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) {