]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix parsing of missing classes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jun 2016 18:02:18 +0000 (19:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jun 2016 18:02:18 +0000 (19:02 +0100)
src/lua/lua_common.c

index 725160ee0c0147ed384fc6197992ac55cea82d3e..3715676956a9581512fc9170cce594db3caa2165 100644 (file)
@@ -729,6 +729,7 @@ rspamd_lua_parse_table_arguments (lua_State *L, gint pos,
                        case 'U':
                                if (t == LUA_TNIL || t == LUA_TNONE) {
                                        failed = TRUE;
+                                       *(va_arg (ap, void **)) = NULL;
                                }
                                else if (t != LUA_TUSERDATA) {
                                        g_set_error (err,