Fix potential suppression parsing issue found by CLANG.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent 0fd71c45c5
commit 362c25ec8a

@ -486,7 +486,7 @@ int SCThresholdConfAddThresholdtype(char *rawstr, DetectEngineCtx *de_ctx)
break;
case THRESHOLD_TYPE_SUPPRESS:
/* need to get IP if extension is provided */
if (strlen(rule_extend)) {
if (th_track != NULL) {
if (strcasecmp(th_track,"by_dst") == 0)
parsed_track = TRACK_DST;
else if (strcasecmp(th_track,"by_src") == 0)

Loading…
Cancel
Save