From: Victor Julien Date: Tue, 9 Jan 2024 19:18:21 +0000 (+0100) Subject: detect/threshold: minor rate filter cleanup X-Git-Tag: suricata-8.0.0-beta1~1092 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7247b1ed88b23ee9d21fc5e3db955678e81825;p=thirdparty%2Fsuricata.git detect/threshold: minor rate filter cleanup --- diff --git a/src/detect-engine-threshold.c b/src/detect-engine-threshold.c index 36655983cf..1100a877ad 100644 --- a/src/detect-engine-threshold.c +++ b/src/detect-engine-threshold.c @@ -566,7 +566,7 @@ static int ThresholdHandlePacketSuppress(Packet *p, return ret; } -static inline void RateFilterSetAction(Packet *p, PacketAlert *pa, uint8_t new_action) +static inline void RateFilterSetAction(PacketAlert *pa, uint8_t new_action) { switch (new_action) { case TH_ACTION_ALERT: @@ -802,7 +802,7 @@ static int ThresholdHandlePacket(Packet *p, DetectThresholdEntry *lookup_tsh, SCLogDebug("rate_filter"); ret = 1; if (lookup_tsh && IsThresholdReached(lookup_tsh, td, p->ts)) { - RateFilterSetAction(p, pa, td->new_action); + RateFilterSetAction(pa, td->new_action); } else if (!lookup_tsh) { *new_tsh = DetectThresholdEntryAlloc(td, sid, gid); }