Oct 09 05:42:38 [prosody] c2s20000008028cf910: Traceback[c2s]:
/usr/lib/prosody/util/stanza.lua:346: attempt to index local 'child' (a nil
value)_stack traceback:__/usr/lib/prosody/util/stanza.l
ua:346: in function 'clone'__/usr/lib/prosody/modules/mod_smacks.lua:87: in
function 'send'__/usr/lib/prosody/modules/mod_c2s.lua:150: in function
</usr/lib/prosody/modules/mod_c2s.lua:125>__(ta
il call): ?__(tail call): ?__(tail call): ?__(tail call): ?__(tail call):
?__(tail call): ?__(tail call): ?__(tail call): ?__(tail call):
?__...__/usr/lib/prosody/core/sessionmanager.lua:142: in
function 'sm_bind_resource'__/usr/lib/prosody/modules/mod_saslauth.lua:267: in function '?'__/usr/lib/prosody/util/events.lua:67: in function </usr/lib/prosody/util/events.lua:63>__(tail call):
?__/usr/lib/prosody/modules/mod_iq.lua:54: in function '?'__/usr/lib/prosody/util/events.lua:67: in function 'fire_event'__/usr/lib/prosody/core/stanza_router.lua:188: in function 'core_post_st
anza'__/usr/lib/prosody/core/stanza_router.lua:135: in function
'core_process_stanza'__/usr/lib/prosody/modules/mod_c2s.lua:236: in function
'func'__/usr/lib/prosody/util/async.lua:88: in functi
on </usr/lib/prosody/util/async.lua:86>
This patch works around the issue:
--- /usr/lib/prosody/util/stanza.lua.orig 2014-10-09 05:47:07.848310996
+0200
+++ /usr/lib/prosody/util/stanza.lua 2014-10-09 05:44:44.828650647 +0200
@@ -343,11 +343,13 @@
local new = { name = stanza.name, attr = attr, tags = tags };
for i=1,#stanza do
local child = stanza[i];
+ if child then
if child.name then
child = _clone(child);
t_insert(tags, child);
end
t_insert(new, child);
+ end
end
return setmetatable(new, stanza_mt);
end
Original issue reported on code.google.com by devuran...@gmx.net on 9 Oct 2014 at 3:48
Original issue reported on code.google.com by
devuran...@gmx.net
on 9 Oct 2014 at 3:48