aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-30 21:02:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-30 21:02:56 +0100
commit8a0d5ee8dcb1b2a74faa536bff92800ef8569173 (patch)
tree8e7f3a670451b5962b016bc5f82c82855cc28981 /src/plugins
parent8dc7b152a5d0624086c449375178f1d9777ff409 (diff)
downloadrspamd-8a0d5ee8dcb1b2a74faa536bff92800ef8569173.tar.gz
rspamd-8a0d5ee8dcb1b2a74faa536bff92800ef8569173.zip
[Minor] Fix index in redirector registration
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/surbl.c2
1 files changed, 1 insertions, 1 deletions
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);