diff --git a/src/detect-dataset.c b/src/detect-dataset.c index 3f61c01c34..a0131f7929 100644 --- a/src/detect-dataset.c +++ b/src/detect-dataset.c @@ -506,6 +506,10 @@ int DetectDatasetSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawst SCLogError("json format needs a 'context_key' parameter"); return -1; } + if (strlen(value_key) == 0) { + SCLogError("json format needs a 'value_key' parameter"); + return -1; + } } /* if just 'load' is set, we load data from the same dir as the