Skip to content

Commit fab29c0

Browse files
authored
Merge pull request #200 from XiaoMi/dev
fix readHandshakeResponse
2 parents c58faee + d8f3338 commit fab29c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proxy/server/client_conn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ func (cc *ClientConn) readHandshakeResponse() (HandshakeResponseInfo, error) {
216216
authResponse, pos, ok = mysql.ReadNullByte(data, pos)
217217
}
218218
if !ok {
219+
return info, fmt.Errorf("readHandshakeResponse: can't read auth-response")
219220
}
220221

221222
info.AuthResponse = authResponse

0 commit comments

Comments
 (0)