summaryrefslogtreecommitdiffstats
path: root/bin/conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/conn.c')
-rw-r--r--bin/conn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/conn.c b/bin/conn.c
index 90777ba..f953d09 100644
--- a/bin/conn.c
+++ b/bin/conn.c
@@ -14,6 +14,8 @@
#include "list.h"
#include "conn.h"
+#include "lua-privsep.h"
+
#ifndef DEBUG
#define log_debug(x) printf("%s\n", x)
@@ -62,8 +64,7 @@ static void conn_recv_cb (struct ev_loop *loop, struct ev_io *w,
if (conn->num_read >= sizeof(conn->msg))
goto err;
- call_lua(conn->num_read, conn->msg);
- return;
+ call_lua(conn->io.fd, conn->msg, conn->num_read);
err:
conn_free(loop, conn);