thresholds: syntax fixes

Fix syntax of if statement in SigGetThresholdTypeIter()
pull/6172/head
Mats Klepsland 4 years ago committed by Victor Julien
parent b0b4fab794
commit f47e4375b3

@ -110,9 +110,8 @@ int ThresholdIPPairHasThreshold(IPPair *pair)
*
* \retval tsh Return the threshold data from signature or NULL if not found
*/
const DetectThresholdData *SigGetThresholdTypeIter(const Signature *sig,
const SigMatchData **psm,
int list)
const DetectThresholdData *SigGetThresholdTypeIter(
const Signature *sig, const SigMatchData **psm, int list)
{
const SigMatchData *smd = NULL;
const DetectThresholdData *tsh = NULL;
@ -128,9 +127,7 @@ const DetectThresholdData *SigGetThresholdTypeIter(const Signature *sig,
}
while (1) {
if (smd->type == DETECT_THRESHOLD ||
smd->type == DETECT_DETECTION_FILTER)
{
if (smd->type == DETECT_THRESHOLD || smd->type == DETECT_DETECTION_FILTER) {
tsh = (DetectThresholdData *)smd->ctx;
if (smd->is_last) {

@ -37,8 +37,8 @@ int ThresholdHostHasThreshold(Host *);
int ThresholdIPPairHasThreshold(IPPair *pair);
const DetectThresholdData *SigGetThresholdTypeIter(const Signature *,
const SigMatchData **, int list);
const DetectThresholdData *SigGetThresholdTypeIter(
const Signature *, const SigMatchData **, int list);
int PacketAlertThreshold(DetectEngineCtx *, DetectEngineThreadCtx *,
const DetectThresholdData *, Packet *,
const Signature *, PacketAlert *);

Loading…
Cancel
Save