aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-09-26 16:43:19 +0000
committerOmar Polo <op@omarpolo.com>2021-09-26 16:43:19 +0000
commit83fe545a2b8c892e70ecf6b48180c27e6bc6b414 (patch)
tree9826c9d8e136144c9b9575407877ec4a1f34dc65 /server.c
parentcb28978f0a91612f91f0bf4b8bda365941b5df25 (diff)
initialize mbufhead
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c
index e07d6bc..d4b2d11 100644
--- a/server.c
+++ b/server.c
@@ -1179,6 +1179,8 @@ do_accept(int sock, short et, void *d)
c->addr = addr;
c->fcgi = -1;
+ TAILQ_INIT(&c->mbufhead);
+
yield_read(fd, c, &handle_handshake);
connected_clients++;
return;