From fce6ac5cb4771419dbd0cdf5f6b8456c8e19f814 Mon Sep 17 00:00:00 2001
From: Joel Martin <github@martintribe.org>
Date: Fri, 24 Dec 2010 17:39:13 -0700
Subject: [PATCH] Fix to "Tolerate fragmented ServerInit".

Issue #39: https://github.com/kanaka/noVNC/issues/issue/39
---
 include/rfb.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/rfb.js b/include/rfb.js
index 9676395..7536ddc 100644
--- a/include/rfb.js
+++ b/include/rfb.js
@@ -815,7 +815,7 @@ init_msg = function() {
         break;
 
     case 'SecurityResult' :
-        if (rQwait("VNC auth response ", 24)) { return false; }
+        if (rQwait("VNC auth response ", 4)) { return false; }
         switch (rQshift32()) {
             case 0:  // OK
                 // Fall through to ClientInitialisation
-- 
2.18.1