aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 526bb2f0..4f387561 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -200,6 +200,8 @@ end
function deserialize(stanza)
-- Set metatable
if stanza then
+ local attr = stanza.attr;
+ for i=1,#attr do attr[i] = nil; end
setmetatable(stanza, stanza_mt);
for _, child in ipairs(stanza) do
if type(child) == "table" then