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);