Skip to content

Commit 963974e

Browse files
Update client/auth.go
Ooooops. I saw only 13 and 26 bytes variants before... Co-authored-by: lance6716 <lance6716@gmail.com>
1 parent 687a2b9 commit 963974e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (c *Conn) readInitialHandshake() error {
103103

104104
// $len=MAX(13, length of auth-plugin-data - 8)
105105
rest := int(authPluginDataLen) - 8
106-
if max := 13; rest > max {
106+
if max := 13; rest < max {
107107
rest = max
108108
}
109109
if data[pos+rest-1] != 0 {

0 commit comments

Comments
 (0)