commit c413d85: [Minor] Fix usage

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 27 15:28:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-27 16:10:43 +0100
URL: https://github.com/rspamd/rspamd/commit/c413d85f2902f221278e342b37032119df7ebf11

[Minor] Fix usage

---
 src/libserver/re_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index e7641a8b8..eeda99616 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -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);


More information about the Commits mailing list