Received: from eggs.gnu.org ([2001:4830:134:3::10]:56010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ3Nc-0004aK-J8 for qemu-devel@nongnu.org; Mon, 23 Feb 2015 19:29:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQ3NX-0002CJ-K7 for qemu-devel@nongnu.org; Mon, 23 Feb 2015 19:29:40 -0500 From: =?utf-8?Q?Jorge_Acereda_Maci=C3=A1?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Feb 2015 01:29:34 +0100 Message-Id: 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 Please, forget my previous patch, worked somehow with Chrome but failed = with Safari (with a good reason, the sent headers were incorrect). This = one should be correct and simpler. Signed-off-by: Jorge Acereda Macia --- ui/vnc-ws.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/vnc-ws.c b/ui/vnc-ws.c index e304baf..d75950d 100644 --- a/ui/vnc-ws.c +++ b/ui/vnc-ws.c @@ -207,8 +207,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_buf(vs, (const uint8_t *)response, = strlen(response)); =20 g_free(accept); g_free(response); --=20 1.9.3 (Apple Git-50)