diff --git a/src/detect-engine-threshold.c b/src/detect-engine-threshold.c index b7a63a7f4c..4caff2459e 100644 --- a/src/detect-engine-threshold.c +++ b/src/detect-engine-threshold.c @@ -270,6 +270,9 @@ int PacketAlertThreshold(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx ste.ipv = 4; else if (PKT_IS_IPV6(p)) ste.ipv = 6; + else { + SCReturnInt(0); + } ste.sid = s->id; ste.gid = s->gid;