datajson: value_key is necessary in json format

pull/13432/head
Eric Leblond 2 months ago committed by Victor Julien
parent 6236574b9c
commit 43a1ef45ca

@ -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

Loading…
Cancel
Save