From 2986f6cda0a7834d6ad5d7e927b58dd5ba4a2502 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 6 Feb 2017 18:30:02 +0100 Subject: Fix segfault on client destruction etc. --- demo-json-rpc-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c index 11ebfdf..47622ba 100644 --- a/demo-json-rpc-server.c +++ b/demo-json-rpc-server.c @@ -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); -- cgit v1.2.3-70-g09d2