[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] Fix crash when connecting to VNC through websocke
From: |
Jorge Acereda Maciá |
Subject: |
[Qemu-trivial] [PATCH] Fix crash when connecting to VNC through websocket |
Date: |
Tue, 24 Feb 2015 01:29:34 +0100 |
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 <address@hidden>
---
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)
}
response = 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));
g_free(accept);
g_free(response);
--
1.9.3 (Apple Git-50)