mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-07 14:39:02 +08:00
fix bug when deal invalid package
This commit is contained in:
@@ -149,6 +149,11 @@ func (ms *MysqlSession) readFromClient(seqID int64, bytes []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
// ignore invalid head package
|
||||
if len(bytes) <= 4{
|
||||
return
|
||||
}
|
||||
|
||||
contents := bytes[4:]
|
||||
// add prepare info
|
||||
if contents[0] == ComStmtPrepare {
|
||||
|
Reference in New Issue
Block a user