|
|
|
@ -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) {
|
|
|
|
|