]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix usage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Jul 2020 15:10:43 +0000 (16:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Jul 2020 15:10:43 +0000 (16:10 +0100)
src/libserver/re_cache.c

index e7641a8b86f956eee3bf6c1247a14da059f2e4e7..eeda99616cf8616e954d19f1d71365802c5e0fde 100644 (file)
@@ -624,7 +624,7 @@ rspamd_re_cache_process_pcre (struct rspamd_re_runtime *rt,
                                is_raw,
                                NULL)) {
                        if (rspamd_re_cache_check_lua_condition (task, re, in, len,
-                                       start, end, lua_cbref)) {
+                                       start - (const gchar *)in, end - (const gchar *)in, lua_cbref)) {
                                r++;
                                msg_debug_re_task ("found regexp /%s/, total hits: %d",
                                                rspamd_regexp_get_pattern (re), r);