aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:18:34 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:18:34 +0000
commit1d0ff299f57e94b297d4215fc4429c2aabbc40ba (patch)
tree025a056b29592a8e0734b1e59fbf0eaf66a2d65a /src/lua
parentc4ddccba821ed6ec6c54ffdf751e96172a19f6d0 (diff)
downloadrspamd-1d0ff299f57e94b297d4215fc4429c2aabbc40ba.tar.gz
rspamd-1d0ff299f57e94b297d4215fc4429c2aabbc40ba.zip
[Fix] Do not save multipatterns to FS in certain cases
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_trie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c
index b92832928..70a685da2 100644
--- a/src/lua/lua_trie.c
+++ b/src/lua/lua_trie.c
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2016 Vsevolod Stakhov
+/*
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -142,7 +142,7 @@ lua_trie_create(lua_State *L)
lua_pop(L, 1); /* table */
- if (!rspamd_multipattern_compile(trie, &err)) {
+ if (!rspamd_multipattern_compile(trie, 0, &err)) {
msg_err("cannot compile multipattern: %e", err);
g_error_free(err);
rspamd_multipattern_destroy(trie);