detect/parse: cleanup test

pull/7436/head
Victor Julien 4 years ago
parent a437dde739
commit 41b5364511

@ -3907,26 +3907,14 @@ end:
*/ */
static int SigParseTestNegation07 (void) static int SigParseTestNegation07 (void)
{ {
int result = 0; DetectEngineCtx *de_ctx = DetectEngineCtxInit();
DetectEngineCtx *de_ctx; FAIL_IF_NULL(de_ctx);
Signature *s=NULL;
de_ctx = DetectEngineCtxInit();
if (de_ctx == NULL)
goto end;
de_ctx->flags |= DE_QUIET; de_ctx->flags |= DE_QUIET;
Signature *s = DetectEngineAppendSig(
s = SigInit(de_ctx,"alert tcp any any -> [192.168.0.2,!192.168.0.0/24] any (msg:\"SigTest41-06 dst ip [192.168.0.2,!192.168.0.0/24] \"; classtype:misc-activity; sid:410006; rev:1;)"); de_ctx, "alert tcp any any -> [192.168.0.2,!192.168.0.0/24] any (sid:410006;)");
if (s != NULL) { FAIL_IF_NOT_NULL(s);
SigFree(de_ctx, s);
goto end;
}
result = 1;
end:
if (de_ctx != NULL)
DetectEngineCtxFree(de_ctx); DetectEngineCtxFree(de_ctx);
return result; PASS;
} }
/** /**

Loading…
Cancel
Save