]> git.ipfire.org Git - thirdparty/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>
Thu, 16 Jun 2016 07:56:25 +0000 (08:56 +0100)
src/lua/lua_common.c

index 7bdf41b6b8824b26b6e5c88786f4b95186affc0c..b9eb59e47191530cc50692b04bb77f6c809e83c3 100644 (file)
@@ -836,6 +836,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,