From da5087a0c0398fbb86e3f4d4e33c5c175b371c70 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 8 Mar 2012 16:36:14 +0100 Subject: [PATCH] Fix broken unittest. --- src/detect-http-server-body.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/detect-http-server-body.c b/src/detect-http-server-body.c index 39592c99cb..5b0691f8d8 100644 --- a/src/detect-http-server-body.c +++ b/src/detect-http-server-body.c @@ -2209,6 +2209,7 @@ int DetectHttpServerBodyTest26(void) return result; } +/** \test invalid combination for content: distance, depth, http_server_body */ int DetectHttpServerBodyTest27(void) { DetectEngineCtx *de_ctx = NULL; @@ -2222,8 +2223,8 @@ int DetectHttpServerBodyTest27(void) "(content:\"one\"; offset:10; http_server_body; pcre:/two/; distance:10; " "content:\"three\"; distance:10; http_server_body; depth:10; " "content:\"four\"; distance:10; sid:1;)"); - if (de_ctx->sig_list == NULL) { - printf("de_ctx->sig_list == NULL\n"); + if (de_ctx->sig_list != NULL) { + printf("de_ctx->sig_list != NULL: "); goto end; } -- 2.47.2