WebSocket: fix segfault in HTTP parsing

This commit is contained in:
Přemysl Eric Janouch 2017-02-06 19:04:58 +01:00
parent 753d5f02ae
commit 5946081a91
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

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