diff mod_audit/mod_audit.lua @ 5321:d02f465e2aff

mod_audit: Fix iteration of custom payloads to use ipairs
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Apr 2023 13:09:31 +0100
parents 5043108b14f4
children eb832553d635
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua	Fri Apr 07 12:09:21 2023 +0100
+++ b/mod_audit/mod_audit.lua	Fri Apr 07 13:09:31 2023 +0100
@@ -102,7 +102,7 @@
 			end
 		end
 		if extra.custom then
-			for _, child in extra.custom do
+			for _, child in ipairs(extra.custom) do
 				if not st.is_stanza(child) then
 					error("all extra.custom items must be stanzas")
 				end