|
|
@ -1395,7 +1395,7 @@ static int DetectEngineThreadCtxInitGlobalKeywords(DetectEngineThreadCtx *det_ct
|
|
|
|
SCMutexLock(&master->lock);
|
|
|
|
SCMutexLock(&master->lock);
|
|
|
|
|
|
|
|
|
|
|
|
if (master->keyword_id > 0) {
|
|
|
|
if (master->keyword_id > 0) {
|
|
|
|
det_ctx->global_keyword_ctxs_array = SCCalloc(master->keyword_id, sizeof(void *));
|
|
|
|
det_ctx->global_keyword_ctxs_array = (void **)SCCalloc(master->keyword_id, sizeof(void *));
|
|
|
|
if (det_ctx->global_keyword_ctxs_array == NULL) {
|
|
|
|
if (det_ctx->global_keyword_ctxs_array == NULL) {
|
|
|
|
SCLogError(SC_ERR_DETECT_PREPARE, "setting up thread local detect ctx");
|
|
|
|
SCLogError(SC_ERR_DETECT_PREPARE, "setting up thread local detect ctx");
|
|
|
|
goto error;
|
|
|
|
goto error;
|
|
|
|