Received: from eggs.gnu.org ([2001:4830:134:3::10]:48082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPeYt-0006Dy-0O for qemu-devel@nongnu.org; Sun, 22 Feb 2015 16:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPeYp-0001hp-Qf for qemu-devel@nongnu.org; Sun, 22 Feb 2015 16:59:38 -0500 From: =?utf-8?Q?Jorge_Acereda_Maci=C3=A1?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sun, 22 Feb 2015 22:58:30 +0100 Message-Id: <4EE0ACB8-AA07-4A62-92D1-AF866DA241FB@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: [Qemu-devel] [PATCH] Fix crash when connecting to VNC through websocket List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, kraxel@redhat.com, aliguori@amazon.com 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). =20 Signed-off-by: Jorge Acereda Macia --- ui/vnc-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/vnc-ws.c b/ui/vnc-ws.c index e304baf..30cb3ae 100644 --- a/ui/vnc-ws.c +++ b/ui/vnc-ws.c @@ -208,7 +208,7 @@ static void vncws_send_handshake_response(VncState = *vs, const char* key) =20 response =3D g_strdup_printf(WS_HANDSHAKE, accept); vnc_write(vs, response, strlen(response)); - vnc_flush(vs); + vnc_client_write_ws(vs); =20 g_free(accept); g_free(response); --=20 1.9.3 (Apple Git-50)