From 8a0d5ee8dcb1b2a74faa536bff92800ef8569173 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 30 Jul 2018 21:02:56 +0100 Subject: [PATCH] [Minor] Fix index in redirector registration --- src/plugins/surbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index d3ed6da74..81496f0a9 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -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); -- 2.39.5