From 78697ce502921e6dfcc1b6a2db1189c03f1e7c5b Mon Sep 17 00:00:00 2001 From: Gurvinder Singh Date: Sun, 4 Oct 2009 20:45:33 +0300 Subject: [PATCH] avoid pm invocation --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index 8f0f401639..d0ecbc7078 100644 --- a/src/detect.c +++ b/src/detect.c @@ -351,7 +351,7 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh return 0; } - if (p->payload_len > 0 && det_ctx->sgh->mpm_ctx != NULL) { + if (p->payload_len > 0 && det_ctx->sgh->mpm_ctx != NULL && !(p->flags & PKT_NOPAYLOAD_INSPECTION)) { /* run the pattern matcher against the packet */ if (det_ctx->sgh->mpm_content_maxlen > p->payload_len) { //printf("Not scanning as pkt payload is smaller than the largest content length we need to match");