From: Victor Julien Date: Thu, 17 Oct 2013 15:41:52 +0000 (+0200) Subject: Minor fix for detection engine setup error check X-Git-Tag: suricata-2.0beta2~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af311aee4ee47944436600a39f5a38e39f96f378;p=thirdparty%2Fsuricata.git Minor fix for detection engine setup error check cppcheck said: [detect-engine-mpm.c:2075] -> [detect-engine-mpm.c:2075]: (style) Same expression on both sides of '||'. --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 62c0de7f0f..dfbc947428 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -2072,7 +2072,7 @@ int PatternMatchPrepareGroup(DetectEngineCtx *de_ctx, SigGroupHead *sh) sh->mpm_stream_ctx_ts = MpmFactoryGetMpmCtxForProfile(de_ctx, MPM_CTX_FACTORY_UNIQUE_CONTEXT, 0); sh->mpm_stream_ctx_tc = MpmFactoryGetMpmCtxForProfile(de_ctx, MPM_CTX_FACTORY_UNIQUE_CONTEXT, 1); } - if (sh->mpm_stream_ctx_tc == NULL || sh->mpm_stream_ctx_tc == NULL) { + if (sh->mpm_stream_ctx_tc == NULL || sh->mpm_stream_ctx_ts == NULL) { SCLogDebug("sh->mpm_stream_ctx == NULL. This should never happen"); exit(EXIT_FAILURE); }