From: Vsevolod Stakhov Date: Mon, 30 Jul 2018 20:02:56 +0000 (+0100) Subject: [Minor] Fix index in redirector registration X-Git-Tag: 1.7.9~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a0d5ee8dcb1b2a74faa536bff92800ef8569173;p=rspamd.git [Minor] Fix index in redirector registration --- 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);