]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix index in redirector registration
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Jul 2018 20:02:56 +0000 (21:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Jul 2018 20:02:56 +0000 (21:02 +0100)
src/plugins/surbl.c

index d3ed6da74995c3fe51c224306732992fb171087c..81496f0a9a759cbe0bfd9919a26275dfd482b3fa 100644 (file)
@@ -1958,7 +1958,7 @@ surbl_register_redirect_handler (lua_State *L)
                luaL_unref (L, LUA_REGISTRYINDEX, surbl_module_ctx->redirector_cbid);
        }
 
-       lua_pushvalue (L, 1);
+       lua_pushvalue (L, 2);
 
        if (lua_type (L, -1) == LUA_TFUNCTION) {
                surbl_module_ctx->redirector_cbid = luaL_ref (L, LUA_REGISTRYINDEX);