Fix thresholding code for packets that are neither (valid) ipv4 and ipv6.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent ae095e585b
commit a4cb7fced0

@ -40,9 +40,12 @@ int PacketAlertHandle(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
{
SCEnter();
int ret = 0;
DetectThresholdData *td = NULL;
/* retrieve the sig match data */
DetectThresholdData *td = SigGetThresholdType(s,p);
if (PKT_IS_IPV4(p) || PKT_IS_IPV6(p)) {
td = SigGetThresholdType(s,p);
}
SCLogDebug("td %p", td);

Loading…
Cancel
Save