summaryrefslogtreecommitdiff
path: root/core/rfb.js
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-03-13 05:40:38 -0800
committerlhchavez <lhchavez@lhchavez.com>2021-03-13 05:40:38 -0800
commitf9a8c4ccd5562128280a9996aed2b307d57c83f3 (patch)
treeabc9c610e30c1bc09cb3ccb4f63467f6d2cf3205 /core/rfb.js
parent9ca337d3a805d241bf52071ade3d3bbff867bbcb (diff)
downloadnovnc-f9a8c4ccd5562128280a9996aed2b307d57c83f3.tar.gz
Add VeNCrypt Plain authentication tests
This change adds tests for the VeNCrypt Plain authentication. In doing that, this also fixes a typo that was introduced in a recent change.
Diffstat (limited to 'core/rfb.js')
-rw-r--r--core/rfb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rfb.js b/core/rfb.js
index 3b52c29..876255b 100644
--- a/core/rfb.js
+++ b/core/rfb.js
@@ -1455,13 +1455,13 @@ export default class RFB extends EventTargetMixin {
this._sock.send([
(user.length >> 24) & 0xFF,
(user.length >> 16) & 0xFF,
- (user.legnth >> 8) & 0xFF,
+ (user.length >> 8) & 0xFF,
user.length & 0xFF
]);
this._sock.send([
(pass.length >> 24) & 0xFF,
(pass.length >> 16) & 0xFF,
- (pass.legnth >> 8) & 0xFF,
+ (pass.length >> 8) & 0xFF,
pass.length & 0xFF
]);
this._sock.sendString(user);