]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 16:38:56 +0000 (16:38 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 16:38:56 +0000 (16:38 +0000)
src/libstat/backends/redis_backend.cxx

index 7bebeb1ed39fbc13820a4c14ed818fd11746197d..6b3c9aae464fa2629320e922cd29cb4093d72818 100644 (file)
@@ -789,7 +789,7 @@ rspamd_redis_process_tokens(struct rspamd_task *task,
        }
 
        gsize tokens_len;
-       gchar *tokens_buf = rspamd_redis_serialize_tokens(task, tokens, &tokens_len);
+       gchar *tokens_buf = rspamd_redis_serialize_tokens(task, rt->redis_object_expanded, tokens, &tokens_len);
        rt->id = id;
 
        lua_pushcfunction(L, &rspamd_lua_traceback);
@@ -876,7 +876,7 @@ rspamd_redis_learn_tokens(struct rspamd_task *task,
        }
 
        gsize tokens_len;
-       gchar *tokens_buf = rspamd_redis_serialize_tokens(task, tokens, &tokens_len);
+       gchar *tokens_buf = rspamd_redis_serialize_tokens(task, rt->redis_object_expanded, tokens, &tokens_len);
 
        rt->id = id;