aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-02-06 18:51:52 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-02-06 18:51:52 +0100
commite6f9e532291f6b4ec0a89c31f317446ac1674f0a (patch)
tree2be3d72498c72a5c46dfc652f98e00fedb8c8902
parent2986f6cda0a7834d6ad5d7e927b58dd5ba4a2502 (diff)
downloadjson-rpc-shell-e6f9e532291f6b4ec0a89c31f317446ac1674f0a.tar.gz
json-rpc-shell-e6f9e532291f6b4ec0a89c31f317446ac1674f0a.tar.xz
json-rpc-shell-e6f9e532291f6b4ec0a89c31f317446ac1674f0a.zip
Fix segfault in WebSocket parsing
-rw-r--r--demo-json-rpc-server.c1
1 files changed, 1 insertions, 0 deletions
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,