]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix variable extraction logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 09:39:59 +0000 (10:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 09:45:38 +0000 (10:45 +0100)
src/lua/lua_mempool.c

index 58630904fde48da08d0c018129b0d60d76939638..3ace7055d68e8aaeb93a0baf98d992185b45182b 100644 (file)
@@ -479,7 +479,7 @@ lua_mempool_get_variable (lua_State *L)
                                                while (cur != NULL) {
                                                        fstr = cur->data;
                                                        lua_pushlstring (L, fstr->str, fstr->len);
-                                                       lua_rawseti (L, -1, i);
+                                                       lua_rawseti (L, -2, i);
                                                        i ++;
                                                        cur = g_list_next (cur);
                                                }