commit e620e76: [Minor] Allow nil options when adding symbols
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Dec 9 12:35:08 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-09 12:32:58 +0000
URL: https://github.com/rspamd/rspamd/commit/e620e76baf2d3821a91602854d5d47aad3fe38bf (HEAD -> master)
[Minor] Allow nil options when adding symbols
---
src/lua/lua_task.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 7072ebe35..cf57ebf13 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1896,6 +1896,12 @@ lua_task_insert_result (lua_State * L)
lua_pop (L, 1);
}
+ else if (ltype == LUA_TNIL) {
+ /* We have received a NULL option, it is not good but not a fatal error */
+ msg_info_task ("nil option when adding symbol %s at pos %d",
+ s->name, i);
+ continue;
+ }
else {
const gchar *tname = lua_typename (L, ltype);
More information about the Commits
mailing list