repository: /home/avi/kvm
branch: master
commit 2e1b9d6811c0e24ca98f4e9c6d16a27f00d915a8
Author: Dan Kenigsberg <[EMAIL PROTECTED]>
Date:   Sun Oct 28 15:28:18 2007 +0200

    kvm: qemu: vnc: fix auth error with vnc clients <= 3.7
    
    Don't send SecurityResult when communicating with vnc clients of v3.7
    with AUTH_NONE.
    
    Signed-off-by: Dan Kenigsberg <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/qemu/vnc.c b/qemu/vnc.c
index 2b0b3b6..b823d86 100644
--- a/qemu/vnc.c
+++ b/qemu/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;
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to