From 79b9eba0f0c50f5b1cec9a798d2398cee64724d1 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Mon, 24 Jan 2011 18:48:47 +0530 Subject: [PATCH] fix case sensitive bug in ac --- src/util-mpm-ac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util-mpm-ac.c b/src/util-mpm-ac.c index b8914a5187..8ac77d0adb 100644 --- a/src/util-mpm-ac.c +++ b/src/util-mpm-ac.c @@ -997,8 +997,8 @@ int SCACPreparePatterns(MpmCtx *mpm_ctx) else ctx->pid_pat_list[ctx->parray[i]->id].case_state = 3; } else { - if (memcmp(ctx->parray[i]->original_pat, ctx->parray[i]->ci, - ctx->parray[i]->len) != 0) { + //if (memcmp(ctx->parray[i]->original_pat, ctx->parray[i]->ci, + // ctx->parray[i]->len) != 0) { ctx->pid_pat_list[ctx->parray[i]->id].cs = malloc(ctx->parray[i]->len); if (ctx->pid_pat_list[ctx->parray[i]->id].cs == NULL) { SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); @@ -1014,7 +1014,7 @@ int SCACPreparePatterns(MpmCtx *mpm_ctx) ctx->pid_pat_list[ctx->parray[i]->id].case_state = 2; else ctx->pid_pat_list[ctx->parray[i]->id].case_state = 3; - } + //} } }