detect/luaxform: fix allowed lua rules check

Meant to be enabled by default, but wasn't.
pull/14535/head
Victor Julien 3 weeks ago
parent d7866495c2
commit da87bd61d0

@ -261,8 +261,7 @@ static int DetectTransformLuaxformSetup(DetectEngineCtx *de_ctx, Signature *s, c
/* First check if Lua rules are enabled, by default Lua in rules
* is disabled. */
int enabled = 0;
(void)SCConfGetBool("security.lua.allow-rules", &enabled);
if (!enabled) {
if (SCConfGetBool("security.lua.allow-rules", &enabled) == 1 && !enabled) {
SCLogError("Lua rules disabled by security configuration: security.lua.allow-rules");
SCReturnInt(-1);
}

Loading…
Cancel
Save