|
|
@ -1764,7 +1764,7 @@ int DetectUriSigTest12(void)
|
|
|
|
DetectEngineCtx *de_ctx = NULL;
|
|
|
|
DetectEngineCtx *de_ctx = NULL;
|
|
|
|
DetectContentData *ud = 0;
|
|
|
|
DetectContentData *ud = 0;
|
|
|
|
Signature *s = NULL;
|
|
|
|
Signature *s = NULL;
|
|
|
|
int result = 1;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
de_ctx = DetectEngineCtxInit();
|
|
|
|
de_ctx = DetectEngineCtxInit();
|
|
|
|
if (de_ctx == NULL)
|
|
|
|
if (de_ctx == NULL)
|
|
|
@ -1775,14 +1775,12 @@ int DetectUriSigTest12(void)
|
|
|
|
"alert udp any any -> any any "
|
|
|
|
"alert udp any any -> any any "
|
|
|
|
"(msg:\"test\"; uricontent: !\"boo\"; sid:238012;)");
|
|
|
|
"(msg:\"test\"; uricontent: !\"boo\"; sid:238012;)");
|
|
|
|
if (de_ctx->sig_list == NULL) {
|
|
|
|
if (de_ctx->sig_list == NULL) {
|
|
|
|
printf("de_ctx->sig_list == NULL\n");
|
|
|
|
printf("de_ctx->sig_list == NULL: ");
|
|
|
|
result = 0;
|
|
|
|
|
|
|
|
goto end;
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (s->sm_lists_tail[DETECT_SM_LIST_UMATCH] == NULL && s->sm_lists_tail[DETECT_SM_LIST_UMATCH]->ctx) {
|
|
|
|
if (s->sm_lists_tail[DETECT_SM_LIST_UMATCH] == NULL || s->sm_lists_tail[DETECT_SM_LIST_UMATCH]->ctx == NULL) {
|
|
|
|
printf("de_ctx->pmatch_tail == NULL && de_ctx->pmatch_tail->ctx\n");
|
|
|
|
printf("de_ctx->pmatch_tail == NULL && de_ctx->pmatch_tail->ctx == NULL: ");
|
|
|
|
result = 0;
|
|
|
|
|
|
|
|
goto end;
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|