diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index f356e5beff..00ea2b58bb 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -2114,7 +2114,8 @@ static int SigMatchPrepare(DetectEngineCtx *de_ctx) Signature *s = de_ctx->sig_list; for (; s != NULL; s = s->next) { /* set up inspect engines */ - DetectEngineAppInspectionEngine2Signature(de_ctx, s); + if (DetectEngineAppInspectionEngine2Signature(de_ctx, s) != 0) + SCReturnInt(-1); /* built-ins */ for (int type = 0; type < DETECT_SM_LIST_MAX; type++) {