From: Victor Julien Date: Sat, 19 Sep 2015 11:57:57 +0000 (+0200) Subject: mpm: assume we'll likely have a mpm_ctx X-Git-Tag: suricata-3.0RC1~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dd3b73db2d0264cbabcd402c76a171306f2ac72;p=thirdparty%2Fsuricata.git mpm: assume we'll likely have a mpm_ctx --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index bc092cdfec..adf4626751 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -232,8 +232,7 @@ uint32_t PacketPatternSearch(DetectEngineThreadCtx *det_ctx, Packet *p) } else { mpm_ctx = det_ctx->sgh->mpm_proto_other_ctx; } - - if (mpm_ctx == NULL) + if (unlikely(mpm_ctx == NULL)) SCReturnInt(0); #ifdef __SC_CUDA_SUPPORT__