Changeset

2560:fda47e2135e5

mod_firewall: Fix compilation error when last action modifies stanza route
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Feb 2017 09:48:45 +0000
parents 2559:99b32f77f00d
children 2561:3da0e3c917cc
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)