From: Vsevolod Stakhov Date: Thu, 21 Feb 2019 12:01:15 +0000 (+0000) Subject: [Minor] Lua_html: Fix traversing to the top-most parent X-Git-Tag: 1.9.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9378b9748132e1ba5dd65805de955603c7b9118d;p=thirdparty%2Frspamd.git [Minor] Lua_html: Fix traversing to the top-most parent --- diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c index 739776b01e..63839c2866 100644 --- a/src/lua/lua_html.c +++ b/src/lua/lua_html.c @@ -594,6 +594,9 @@ lua_html_tag_get_parent (lua_State *L) *ptag = node->data; rspamd_lua_setclass (L, "rspamd{html_tag}", -1); } + else { + lua_pushnil (L); + } } else { return luaL_error (L, "invalid arguments");