]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix return value for couple of lua functions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Apr 2016 14:44:25 +0000 (15:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Apr 2016 14:44:25 +0000 (15:44 +0100)
src/lua/lua_config.c

index 0737584c5f449cc7617292549f9b60ea0efe084f..5716602c37186235c3053fba5097918ff40f9fa4 100644 (file)
@@ -720,7 +720,8 @@ lua_config_register_post_filter (lua_State *L)
                        (rspamd_mempool_destruct_t)lua_destroy_cfg_symbol,
                        cd);
        }
-       return 1;
+
+       return 0;
 }
 
 void
@@ -792,7 +793,8 @@ lua_config_register_pre_filter (lua_State *L)
                        (rspamd_mempool_destruct_t)lua_destroy_cfg_symbol,
                        cd);
        }
-       return 1;
+
+       return 0;
 }
 
 static gint