fix null dereference in detect parse test - clang fix

remotes/origin/master-1.1.x
Anoop Saldanha 15 years ago committed by Victor Julien
parent 892dea31e4
commit fe700737a3

@ -2059,6 +2059,8 @@ int SigParseTest09(void) {
DetectEngineAppendSig(de_ctx, "alert tcp any any -> any any (msg:\"boo\"; sid:2; rev:2;)"); DetectEngineAppendSig(de_ctx, "alert tcp any any -> any any (msg:\"boo\"; sid:2; rev:2;)");
result &= (de_ctx->sig_list != NULL && de_ctx->sig_list->id == 2 && result &= (de_ctx->sig_list != NULL && de_ctx->sig_list->id == 2 &&
de_ctx->sig_list->rev == 2); de_ctx->sig_list->rev == 2);
if (result == 0)
goto end;
result &= (de_ctx->sig_list->next != NULL && de_ctx->sig_list->next->id == 1 && result &= (de_ctx->sig_list->next != NULL && de_ctx->sig_list->next->id == 1 &&
de_ctx->sig_list->next->rev == 6); de_ctx->sig_list->next->rev == 6);
if (result == 0) if (result == 0)

Loading…
Cancel
Save