From: Vsevolod Stakhov Date: Mon, 9 Dec 2019 12:32:58 +0000 (+0000) Subject: [Minor] Allow nil options when adding symbols X-Git-Tag: 2.3~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e620e76baf2d3821a91602854d5d47aad3fe38bf;p=thirdparty%2Frspamd.git [Minor] Allow nil options when adding symbols --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 7072ebe35e..cf57ebf131 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);