Fix segfault in WebSocket parsing

This commit is contained in:
Přemysl Eric Janouch 2017-02-06 18:51:52 +01:00
parent 2986f6cda0
commit e6f9e53229
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 0 deletions

View File

@ -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,