diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-30 21:02:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-30 21:02:56 +0100 |
commit | 8a0d5ee8dcb1b2a74faa536bff92800ef8569173 (patch) | |
tree | 8e7f3a670451b5962b016bc5f82c82855cc28981 /src/plugins | |
parent | 8dc7b152a5d0624086c449375178f1d9777ff409 (diff) | |
download | rspamd-8a0d5ee8dcb1b2a74faa536bff92800ef8569173.tar.gz rspamd-8a0d5ee8dcb1b2a74faa536bff92800ef8569173.zip |
[Minor] Fix index in redirector registration
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/surbl.c | 2 |
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); |