From d8f33381e351bbc4b4838a2f5c1c21f7fd3a5165 Mon Sep 17 00:00:00 2001 From: yangming Date: Tue, 1 Mar 2022 18:23:04 +0800 Subject: [PATCH] fix readHandshakeResponse --- proxy/server/client_conn.go | 1 + 1 file changed, 1 insertion(+) 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