From: Victor Julien Date: Thu, 2 Mar 2017 23:12:12 +0000 (+0100) Subject: stream: mpm inspect micro optimizations X-Git-Tag: suricata-4.0.0-beta1~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d7f65050ae081aa1207fda2d9d62a83f82181e;p=thirdparty%2Fsuricata.git stream: mpm inspect micro optimizations --- 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,