summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index ff471cc..8caabec 100644
--- a/src/core.c
+++ b/src/core.c
@@ -471,6 +471,7 @@ void tip_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events)
}
memcpy(&cli->addr, &client_addr, sizeof(client_addr));
cli->fd = -1;
+ cli->chunk = -1;
syslog(LOG_ERR, "accepting client connection from %s:%hu",
inet_ntoa(cli->addr.sin_addr), htons(cli->addr.sin_port));