From b9d406d45cbea8f067d4cfa824345a07245a2b75 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sat, 2 Nov 2024 09:50:11 +0100 Subject: [PATCH] detect/filestore: fix unittest As filestore keyword is not anymore preventing a match, we need to update some tests that were using this "feature". --- src/app-layer-htp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 4acc105bab9..26ca635e6f6 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -5799,12 +5799,12 @@ libhtp:\n\ /* do detect */ SigMatchSignatures(&th_v, de_ctx, det_ctx, p1); - FAIL_IF((PacketAlertCheck(p1, 1))); + FAIL_IF((PacketAlertCheck(p1, 2))); /* do detect */ SigMatchSignatures(&th_v, de_ctx, det_ctx, p1); - FAIL_IF((PacketAlertCheck(p1, 1))); + FAIL_IF((PacketAlertCheck(p1, 2))); r = AppLayerParserParse( &th_v, alp_tctx, &f, ALPROTO_HTTP1, STREAM_TOCLIENT, httpbuf2, httplen2);