Fix segfault on client destruction etc.

This commit is contained in:
Přemysl Eric Janouch 2017-02-06 18:30:02 +01:00
parent c4ebf2ccd5
commit 2986f6cda0
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 0 deletions

View File

@ -1877,6 +1877,7 @@ client_init (EV_P_ struct client *self, int sock_fd)
struct server_context *ctx = ev_userdata (loop);
memset (self, 0, sizeof *self);
self->ctx = ctx;
write_queue_init (&self->write_queue);
set_blocking (sock_fd, false);