projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil,...
[prosody.git]
/
core
/
xmlhandlers.lua
diff --git
a/core/xmlhandlers.lua
b/core/xmlhandlers.lua
index 182da8940284e1e2f0f804fa7fa9fb08bc62f96a..c587548adb72f81a31e8095f4acdb72732e1cd03 100644
(file)
--- a/
core/xmlhandlers.lua
+++ b/
core/xmlhandlers.lua
@@
-114,7
+114,8
@@
function init_xmlhandlers(session, stream_callbacks)
chardata = {};
end
-- Complete stanza
chardata = {};
end
-- Complete stanza
- if #stanza.last_add == 0 then
+ local last_add = stanza.last_add;
+ if not last_add or #last_add == 0 then
if tagname ~= stream_error_tag then
cb_handlestanza(session, stanza);
else
if tagname ~= stream_error_tag then
cb_handlestanza(session, stanza);
else