Skip to content

Commit 8f91524

Browse files
committed
detect/luaxform: fix allowed lua rules check
Meant to be enabled by default, but wasn't. (cherry picked from commit da87bd6)
1 parent d421706 commit 8f91524

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/detect-transform-luaxform.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ static int DetectTransformLuaxformSetup(DetectEngineCtx *de_ctx, Signature *s, c
261261
/* First check if Lua rules are enabled, by default Lua in rules
262262
* is disabled. */
263263
int enabled = 0;
264-
(void)SCConfGetBool("security.lua.allow-rules", &enabled);
265-
if (!enabled) {
264+
if (SCConfGetBool("security.lua.allow-rules", &enabled) == 1 && !enabled) {
266265
SCLogError("Lua rules disabled by security configuration: security.lua.allow-rules");
267266
SCReturnInt(-1);
268267
}

0 commit comments

Comments
 (0)