From 13045683ff551a5cfae13eb6e6bceee4b3d1a881 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 7 Jul 2010 19:13:11 +0200 Subject: [PATCH] Reenable and fix AlpDetectTestSig5 --- src/app-layer-detect-proto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index 0608c95012..90aa62fd17 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1844,6 +1844,9 @@ static int AlpDetectTestSig5(void) p.flowflags |= FLOW_PKT_TOSERVER; p.flowflags |= FLOW_PKT_ESTABLISHED; f.alproto = ALPROTO_HTTP; + f.proto = IPPROTO_TCP; + p.flags |= PKT_STREAM_ADD; + p.flags |= PKT_STREAM_EOF; DetectEngineCtx *de_ctx = DetectEngineCtxInit(); if (de_ctx == NULL) { @@ -1929,9 +1932,6 @@ void AlpDetectRegisterTests(void) { UtRegisterTest("AlpDetectTestSig2", AlpDetectTestSig2, 1); UtRegisterTest("AlpDetectTestSig3", AlpDetectTestSig3, 1); UtRegisterTest("AlpDetectTestSig4", AlpDetectTestSig4, 1); - /** This is not working. Probably because - * of https://redmine.openinfosecfoundation.org/issues/203 UtRegisterTest("AlpDetectTestSig5", AlpDetectTestSig5, 1); - */ #endif /* UNITTESTS */ }