From 5946081a91163fff659eb3f2646da89d2bf71870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 6 Feb 2017 19:04:58 +0100 Subject: [PATCH] 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);