From d6d7f65050ae081aa1207fda2d9d62a83f82181e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 3 Mar 2017 00:12:12 +0100 Subject: [PATCH] stream: mpm inspect micro optimizations --- src/detect-engine-payload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-engine-payload.c b/src/detect-engine-payload.c index 908ddeb0f7..08db3f1b26 100644 --- a/src/detect-engine-payload.c +++ b/src/detect-engine-payload.c @@ -83,8 +83,7 @@ static void PrefilterPktStream(DetectEngineThreadCtx *det_ctx, /* packets that have not been added to the stream will be inspected * as if they are stream chunks */ - if ((!(p->flags & PKT_NOPAYLOAD_INSPECTION)) && - !(p->flags & PKT_STREAM_ADD)) + if ((p->flags & (PKT_NOPAYLOAD_INSPECTION|PKT_STREAM_ADD)) == 0) { if (p->payload_len >= mpm_ctx->minlen) { (void)mpm_table[mpm_ctx->mpm_type].Search(mpm_ctx,