From 963691387aee675e1f1a140a494e412d8d08630c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 16 Feb 2010 11:12:37 +0100 Subject: [PATCH] Disable unused uri scanning code. --- src/detect-pcre.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-pcre.c b/src/detect-pcre.c index 819169b4b6..8013aa976c 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -308,7 +308,7 @@ int DetectPcreMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Packet *p, //printf("DetectPcre: URI det_ctx->sgh %p, det_ctx->mcu %p\n", det_ctx->sgh, det_ctx->mcu); //PrintRawUriFp(stdout,p->http_uri.raw[det_ctx->pkt_cnt],p->http_uri.raw_size[det_ctx->pkt_cnt]); //printf(" (pkt_cnt %" PRIu32 ", mcu %p)\n", det_ctx->pkt_cnt, det_ctx->mcu); - +#if 0 /* don't bother scanning if we don't have a pattern matcher ctx * which means we don't have uricontent sigs */ if (det_ctx->sgh->mpm_uri_ctx != NULL) { @@ -337,6 +337,7 @@ int DetectPcreMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Packet *p, } } } +#endif } else { if (pe->flags & DETECT_PCRE_CAPTURE_PKT) { PktVarAdd(p, pe->capname, (uint8_t *)str_ptr, ret);