From f16c6a65170d77092f55b204cb7687202240c190 Mon Sep 17 00:00:00 2001 From: psondej Date: Tue, 10 Dec 2024 13:42:42 +0100 Subject: [PATCH] Fix incorrect size check in NFGenMsg, resolving TableFamily issue for rules in monitor --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 4f03dc0..b040ae4 100644 --- a/util.go +++ b/util.go @@ -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]