diff --git a/proxy/server/client_conn.go b/proxy/server/client_conn.go index 00736443..aadfdb9d 100644 --- a/proxy/server/client_conn.go +++ b/proxy/server/client_conn.go @@ -216,6 +216,7 @@ func (cc *ClientConn) readHandshakeResponse() (HandshakeResponseInfo, error) { authResponse, pos, ok = mysql.ReadNullByte(data, pos) } if !ok { + return info, fmt.Errorf("readHandshakeResponse: can't read auth-response") } info.AuthResponse = authResponse