mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-11 11:02:08 +00:00
Don't pop excess values from stack
The call to rule_loader.load_rules only returns 2 values, so only pop two values from the stack. This fixes #906. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
parent
b38db99449
commit
023f510a75
@ -444,7 +444,7 @@ void falco_rules::load_rules(const string &rules_content,
|
|||||||
throw falco_exception(err);
|
throw falco_exception(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
lua_pop(m_ls, 4);
|
lua_pop(m_ls, 2);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw falco_exception("No function " + m_lua_load_rules + " found in lua rule module");
|
throw falco_exception("No function " + m_lua_load_rules + " found in lua rule module");
|
||||||
|
Loading…
Reference in New Issue
Block a user