From e6f9e532291f6b4ec0a89c31f317446ac1674f0a Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 6 Feb 2017 18:51:52 +0100
Subject: Fix segfault in WebSocket parsing
---
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 47622ba..2e855bf 100644
--- a/demo-json-rpc-server.c
+++ b/demo-json-rpc-server.c
@@ -789,6 +789,7 @@ ws_handler_init (struct ws_handler *self)
ws_parser_init (&self->parser);
self->parser.on_frame_header = ws_handler_on_frame_header;
self->parser.on_frame = ws_handler_on_frame;
+ self->parser.user_data = self;
str_init (&self->message_data);
ev_timer_init (&self->ping_timer,
--
cgit v1.2.3-70-g09d2