From 0fc528e0af51f45e92f1d9605d1589f49cb58e2c Mon Sep 17 00:00:00 2001 From: jingtao01 Date: Thu, 3 Jan 2019 21:32:17 +0800 Subject: [PATCH] fix resolveServerPacket --- plugSrc/mysql/build/entry.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugSrc/mysql/build/entry.go b/plugSrc/mysql/build/entry.go index 12c0895..d710fca 100644 --- a/plugSrc/mysql/build/entry.go +++ b/plugSrc/mysql/build/entry.go @@ -216,6 +216,9 @@ func (stm *stream) findStmtPacket (srv chan *packet, seq int) *packet { func (stm *stream) resolveServerPacket(payload []byte, seq int) { var msg = "" + if len(payload) == 0 { + return + } switch payload[0] { case 0xff: