Fix crash when connecting to VNC through websocket
commitb57489cfe48f9fedc10205c0494f144085733f30
authorJorge Acereda MaciĆ” <jacereda@gmail.com>
Wed, 25 Feb 2015 23:21:39 +0000 (26 00:21 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Mar 2015 10:33:42 +0000 (10 11:33 +0100)
tree5d856b4c041a31051eae5c768717053c640c61d1
parent006decd448ae3ce04f12e2bbdd3079ba74d25c89
Fix crash when connecting to VNC through websocket

Connecting to VNC through websocket crashes in vnc_flush() when trying
to acquire a mutex that hasn't been initialized (vnc_init_state(vs)
hasn't been called at this point).

Signed-off-by: Jorge Acereda Macia <jacereda@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-ws.c