]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix addition in pcre fallback
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 May 2017 12:22:04 +0000 (13:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 May 2017 12:22:04 +0000 (13:22 +0100)
src/libserver/re_cache.c

index 2302ea8c8996b30d741622f4a5e8ef51f02253be..c51caff8ff49ab1559d2bd6f834ca076440f3e4f 100644 (file)
@@ -665,7 +665,7 @@ rspamd_re_cache_process_regexp_data (struct rspamd_re_runtime *rt,
                                        in[i],
                                        lens[i],
                                        is_raw);
-                       rt->results[re_id] = ret;
+                       rt->results[re_id] += ret;
                }
 
                setbit (rt->checked, re_id);
@@ -675,6 +675,7 @@ rspamd_re_cache_process_regexp_data (struct rspamd_re_runtime *rt,
                        if (rt->cache->max_re_data > 0 && lens[i] > rt->cache->max_re_data) {
                                lens[i] = rt->cache->max_re_data;
                        }
+
                        rt->stat.bytes_scanned += lens[i];
                }