diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-12 20:44:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-12 20:44:35 +0100 |
commit | 349f4291d308ab1db7b9bcb7f8cc8c60dcad57f5 (patch) | |
tree | 2d5a5d59a1b6908d4307404c25128d30c71ade62 /src/lua/lua_config.c | |
parent | 33f69f85ea3c7f27ac3a98a5eaf8ed0d232110fd (diff) | |
download | rspamd-349f4291d308ab1db7b9bcb7f8cc8c60dcad57f5.tar.gz rspamd-349f4291d308ab1db7b9bcb7f8cc8c60dcad57f5.zip |
[Project] Support augmentations with values
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 333c8cdde..948aa165f 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2089,7 +2089,7 @@ lua_config_register_symbol (lua_State * L) const char *augmentation = lua_tostring(L, -1); if (!rspamd_symcache_add_symbol_augmentation(cfg->cache, ret, - augmentation)) { + augmentation, NULL)) { lua_settop(L, prev_top); return luaL_error (L, "unknown augmentation %s in symbol %s", @@ -2739,7 +2739,7 @@ lua_config_newindex (lua_State *L) int tbl_idx = lua_gettop(L); for (lua_pushnil(L); lua_next(L, tbl_idx); lua_pop (L, 1)) { rspamd_symcache_add_symbol_augmentation(cfg->cache, id, - lua_tostring(L, -1)); + lua_tostring(L, -1), NULL); } } |