summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
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);