qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Patch] handle VNC v3.7 clients correctly
@ 2007-10-28 14:20 Dan Kenigsberg
  2007-10-28 14:58 ` Daniel P. Berrange
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Kenigsberg @ 2007-10-28 14:20 UTC (permalink / raw)
  To: qemu-devel

According to http://www.realvnc.com/docs/rfbproto.pdf section 6.2.1,
when handling older clients, SecurityResult should not be sent.

diff --git a/vnc.c b/vnc.c
index 72c8d1c..8ae671a 100644
--- a/vnc.c
+++ b/vnc.c
@@ -1775,7 +1775,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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Patch] handle VNC v3.7 clients correctly
  2007-10-28 14:20 [Qemu-devel] [Patch] handle VNC v3.7 clients correctly Dan Kenigsberg
@ 2007-10-28 14:58 ` Daniel P. Berrange
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrange @ 2007-10-28 14:58 UTC (permalink / raw)
  To: qemu-devel

On Sun, Oct 28, 2007 at 04:20:36PM +0200, Dan Kenigsberg wrote:
> According to http://www.realvnc.com/docs/rfbproto.pdf section 6.2.1,
> when handling older clients, SecurityResult should not be sent.

Yep, good catch - thanks for finding this bug of mine.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-28 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-28 14:20 [Qemu-devel] [Patch] handle VNC v3.7 clients correctly Dan Kenigsberg
2007-10-28 14:58 ` Daniel P. Berrange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).