From 5946081a91163fff659eb3f2646da89d2bf71870 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 6 Feb 2017 19:04:58 +0100 Subject: WebSocket: fix segfault in HTTP parsing --- json-rpc-shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 8f19b1e..09c4d82 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -2085,6 +2085,7 @@ backend_ws_connect (struct ws_context *self, struct error **e) } http_parser_init (&self->hp, HTTP_RESPONSE); + self->hp.data = self; str_reset (&self->field); str_reset (&self->value); str_map_clear (&self->headers); -- cgit v1.2.3-70-g09d2