mirror of https://github.com/40t/go-sniffer.git
Merge pull request #11 from Chyroc/fix-mysql-server-packet-nil-pointer
fix mysql packet nil pointer
This commit is contained in:
commit
915970dc69
|
@ -260,6 +260,7 @@ func (stm *stream) resolveClientPacket(payload []byte, seq int) {
|
||||||
serverPacket := stm.findStmtPacket(stm.packets, seq+1)
|
serverPacket := stm.findStmtPacket(stm.packets, seq+1)
|
||||||
if serverPacket == nil {
|
if serverPacket == nil {
|
||||||
log.Println("ERR : Not found stm packet")
|
log.Println("ERR : Not found stm packet")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//fetch stm id
|
//fetch stm id
|
||||||
|
|
Loading…
Reference in New Issue