Skip to content

Commit

Permalink
Update service.go
Browse files Browse the repository at this point in the history
fix out of range  bug
  • Loading branch information
linksucre authored Dec 10, 2021
1 parent 6a7eeba commit 9d19712
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/common/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ func ComparePackets(rcv []byte, rcvSize int, szBan *string, szSvcName *string) i

var cFlag_MongoDB = []byte{0x4d, 0x09, 0x50, 0x00}
var cBit_MongoDB []byte



if len(buf) <4 {
goto Return
}

if rcvSize <4{
goto Return
}
Expand Down

0 comments on commit 9d19712

Please sign in to comment.