summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-17 15:27:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-17 15:27:06 +0100
commit144c31c63ccf06036cbddc5b34f8f57e2e77ae2e (patch)
tree457c50832eecb099998b15ec0312830196553a8c /src/controller.c
parentc5663c16fe578d09487c1402d2c2ccc5350d94e5 (diff)
downloadrspamd-144c31c63ccf06036cbddc5b34f8f57e2e77ae2e.tar.gz
rspamd-144c31c63ccf06036cbddc5b34f8f57e2e77ae2e.zip
[Fix] Fix sending string method
Issue: #2346
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 27e1bd6e7..c786c138e 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3463,7 +3463,7 @@ static int
lua_csession_send_string (lua_State *L)
{
struct rspamd_http_connection_entry *c = lua_check_controller_entry (L, 1);
- const gchar *str = lua_tostring (L, 3);
+ const gchar *str = lua_tostring (L, 2);
if (c) {
rspamd_controller_send_string (c, str);