detect: packet match micro optimization

pull/3739/head
Victor Julien 8 years ago
parent 7497c633c4
commit bd31e4e332

@ -672,7 +672,6 @@ static inline int DetectRunInspectRulePacketMatches(
SigMatchData *smd = s->sm_arrays[DETECT_SM_LIST_MATCH];
SCLogDebug("running match functions, sm %p", smd);
if (smd != NULL) {
while (1) {
KEYWORD_PROFILING_START;
if (sigmatch_table[smd->type].Match(tv, det_ctx, p, s, smd->ctx) <= 0) {
@ -688,7 +687,6 @@ static inline int DetectRunInspectRulePacketMatches(
smd++;
}
}
}
return 1;
}

Loading…
Cancel
Save