]> source.dussan.org Git - rspamd.git/commitdiff
Fix has_symbol method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Feb 2016 17:47:17 +0000 (17:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Feb 2016 17:47:17 +0000 (17:47 +0000)
src/lua/lua_task.c

index dde8821041b11ced58880d2872d3e594509f7652..e73de893d7ceeb52b29bfbd42f5d4ad4907c7387 100644 (file)
@@ -1937,6 +1937,8 @@ lua_task_has_symbol (lua_State *L)
                if (mres) {
                        found = g_hash_table_lookup (mres->symbols, symbol) != NULL;
                }
+
+               lua_pushboolean (L, found);
        }
        else {
                luaL_error (L, "invalid arguments");