# HG changeset patch # User Matthew Wild # Date 1680869371 -3600 # Node ID d02f465e2affb08ef9a736b203c603608810f4aa # Parent c450dbf6c0fa65420b2016fa0aeead2d34b8c1aa mod_audit: Fix iteration of custom payloads to use ipairs diff -r c450dbf6c0fa -r d02f465e2aff mod_audit/mod_audit.lua --- 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