From 0b559b0f2fdc8c32fd9aa10cd75e5db6083458d3 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 18 Sep 2014 17:02:47 +0200 Subject: [PATCH] lua: fix http.request_line The request line scripts were added to the AMATCH list. However, there is not AppLayerMatch function defined for lua scripts. So scripts would not run. This patch adds the request line scripts to the normal 'MATCH' list. Bug #1273. --- src/detect-luajit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-luajit.c b/src/detect-luajit.c index 0d1aff6176..1a101c6a0a 100644 --- a/src/detect-luajit.c +++ b/src/detect-luajit.c @@ -891,7 +891,7 @@ static int DetectLuajitSetup (DetectEngineCtx *de_ctx, Signature *s, char *str) else if (luajit->flags & DATATYPE_HTTP_RESPONSE_COOKIE) SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_HCDMATCH); else - SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_AMATCH); + SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_MATCH); } else { SCLogError(SC_ERR_LUAJIT_ERROR, "luajit can't be used with protocol %s", AppLayerGetProtoName(luajit->alproto)); -- 2.47.3