fix: eliminate stale verdict poisoning, memory leaks, data races, and per-packet allocations in engine
This commit is contained in:
+1
-1
@@ -456,7 +456,7 @@ func ctIDFromCtBytes(ct []byte) uint32 {
|
||||
return 0
|
||||
}
|
||||
for _, attr := range ctAttrs {
|
||||
if attr.Type == 12 { // CTA_ID
|
||||
if attr.Type == 12 && len(attr.Data) >= 4 { // CTA_ID
|
||||
return binary.BigEndian.Uint32(attr.Data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user