aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Kenigsberg <danken@qumranet.com>2007-10-28 15:28:18 +0200
committerAvi Kivity <avi@qumranet.com>2007-10-28 19:14:57 +0200
commit66e5c02b86124532c9212d3726a918e3c584f5aa (patch)
tree5ec6c509d5ddd1e15de144023d42f0398d213182
parent228283d8f6223821c2bd8849b9fc57d2bb10442f (diff)
Vnc: fix auth error with vnc clients <= 3.7kvm-49
Don't send SecurityResult when communicating with vnc clients of v3.7 with AUTH_NONE. Signed-off-by: Dan Kenigsberg <danken@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--vnc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnc.c b/vnc.c
index 2b0b3b655..b823d86ce 100644
--- a/vnc.c
+++ b/vnc.c
@@ -1781,7 +1781,10 @@ static int protocol_client_auth(VncState *vs, char *data, size_t len)
switch (vs->auth) {
case VNC_AUTH_NONE:
VNC_DEBUG("Accept auth none\n");
- vnc_write_u32(vs, 0); /* Accept auth completion */
+ if (vs->minor >= 8) {
+ vnc_write_u32(vs, 0); /* Accept auth completion */
+ vnc_flush(vs);
+ }
vnc_read_when(vs, protocol_client_init, 1);
break;