about summary refs log tree commit diff
path: root/test/python
diff options
context:
space:
mode:
Diffstat (limited to 'test/python')
-rw-r--r--test/python/server_test_case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/python/server_test_case.py b/test/python/server_test_case.py
index d4bb330..be2dcf9 100644
--- a/test/python/server_test_case.py
+++ b/test/python/server_test_case.py
@@ -73,7 +73,7 @@ def _read_exact(sock, count):
 
 def _read_scramble(handshake):
     """Extract the 20-byte auth plugin data from the server handshake."""
-    pos = 1  # protocol version
+    pos = 5  # 4-byte packet header, then protocol version
     pos = handshake.index(b"\0", pos) + 1  # server version string
     pos += 4  # connection id
     scramble = handshake[pos : pos + 8]