Fix broken unittest.

remotes/origin/HEAD
Victor Julien 14 years ago
parent aae7ea5e67
commit da5087a0c0

@ -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;
}

Loading…
Cancel
Save