diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-17 08:13:36 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-17 08:13:36 +0100 |
commit | 7c17ddba9a45f93ae491c11d3baf8ca8625375f0 (patch) | |
tree | 802cb7e11c09e5ac3974dbbc3622e312dc2aaf47 /bin/conn.c | |
parent | 1e07eccace7c50fd0e7fa3b217eda85add5a6630 (diff) | |
download | privsep-7c17ddba9a45f93ae491c11d3baf8ca8625375f0.tar.bz2 privsep-7c17ddba9a45f93ae491c11d3baf8ca8625375f0.tar.xz |
Fix privsep client to use lua-socket
Diffstat (limited to 'bin/conn.c')
-rw-r--r-- | bin/conn.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |