From: Victor Julien Date: Thu, 8 Mar 2012 15:36:14 +0000 (+0100) Subject: Fix broken unittest. X-Git-Tag: suricata-1.3beta1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da5087a0c0398fbb86e3f4d4e33c5c175b371c70;p=thirdparty%2Fsuricata.git Fix broken unittest. --- 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; }