Fix incorrect size check in NFGenMsg, resolving TableFamily issue for rules in monitor

This commit is contained in:
psondej 2024-12-10 13:42:42 +01:00
parent c96bb6363f
commit f16c6a6517
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ type NFGenMsg struct {
}
func (genmsg *NFGenMsg) Decode(b []byte) {
if len(b) < 16 {
if len(b) < 4 {
return
}
genmsg.NFGenFamily = b[0]