Skip to content

Commit

Permalink
Don't pop excess values from stack
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstemm authored and fntlnz committed Oct 30, 2019
1 parent b38db99 commit 023f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/engine/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void falco_rules::load_rules(const string &rules_content,
throw falco_exception(err);
}

lua_pop(m_ls, 4);
lua_pop(m_ls, 2);

} else {
throw falco_exception("No function " + m_lua_load_rules + " found in lua rule module");
Expand Down

0 comments on commit 023f510

Please sign in to comment.