Commit a26c97adce76e23ab4ad2ad152d77291ad495484
1 parent
6ac0e82d
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
Showing
1 changed file
with
4 additions
and
1 deletions
vnc.c
... | ... | @@ -1806,7 +1806,10 @@ static int protocol_client_auth(VncState *vs, char *data, size_t len) |
1806 | 1806 | switch (vs->auth) { |
1807 | 1807 | case VNC_AUTH_NONE: |
1808 | 1808 | VNC_DEBUG("Accept auth none\n"); |
1809 | - vnc_write_u32(vs, 0); /* Accept auth completion */ | |
1809 | + if (vs->minor >= 8) { | |
1810 | + vnc_write_u32(vs, 0); /* Accept auth completion */ | |
1811 | + vnc_flush(vs); | |
1812 | + } | |
1810 | 1813 | vnc_read_when(vs, protocol_client_init, 1); |
1811 | 1814 | break; |
1812 | 1815 | ... | ... |