mod_firewall: Fix compilation error when last action modifies stanza route
authorMatthew Wild <mwild1@gmail.com>
Fri, 24 Feb 2017 09:48:45 +0000
changeset 2564 fda47e2135e5
parent 2563 99b32f77f00d
child 2565 3da0e3c917cc
mod_firewall: Fix compilation error when last action modifies stanza route
mod_firewall/actions.lib.lua
--- a/mod_firewall/actions.lib.lua	Fri Feb 24 09:48:16 2017 +0000
+++ b/mod_firewall/actions.lib.lua	Fri Feb 24 09:48:45 2017 +0000
@@ -126,7 +126,7 @@
 		deps[#deps+1] = "core_post_stanza";
 	end
 	return ([[local newstanza = st.%s; %s;%s]])
-		:format(make_new, reroute, drop and " return true;" or ""), deps;
+		:format(make_new, reroute, drop and " do return true end" or ""), deps;
 end
 
 function action_handlers.BOUNCE(with)