diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-31 01:58:56 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-31 01:58:56 +0000 |
commit | a26c97adce76e23ab4ad2ad152d77291ad495484 (patch) | |
tree | 93b255888831d1430ace90a4e276f8f2ada3852b | |
parent | 6ac0e82da197d42b84f6ac5509fa22f90cb357be (diff) |
Handle 3.7 VNC clients authentication correctly (Dan Kenigsberg).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3498 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | vnc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1806,7 +1806,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; |