diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-09 12:32:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-09 12:32:58 +0000 |
commit | e620e76baf2d3821a91602854d5d47aad3fe38bf (patch) | |
tree | 9377107eb0a1e405a817ec0f915ec524e7d3e877 /src/lua | |
parent | f7daba4edf1dc6f6653a934327e2a072b314ad90 (diff) | |
download | rspamd-e620e76baf2d3821a91602854d5d47aad3fe38bf.tar.gz rspamd-e620e76baf2d3821a91602854d5d47aad3fe38bf.zip |
[Minor] Allow nil options when adding symbols
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |