aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-05 01:54:06 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-05 01:54:06 +0100
commit8b41860d443cb1c27accd9f3081a76cd0fd3f9cd (patch)
tree949ef392212ec51c48b50c501b5de3a61b6da791 /util
parent8b31cde5a9ac088d76e286a16a32d5bc97d8cffa (diff)
parent57683f24cf25eb604c3a585c1fe46bd3065a31e7 (diff)
downloadprosody-8b41860d443cb1c27accd9f3081a76cd0fd3f9cd.tar.gz
prosody-8b41860d443cb1c27accd9f3081a76cd0fd3f9cd.zip
Merge 0.8->trunk
Diffstat (limited to 'util')
-rw-r--r--util/xmppstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 70420424..e5271b72 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -170,7 +170,7 @@ function new_sax_handlers(session, stream_callbacks)
local function restricted_handler(parser)
cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1.");
- if not parser:stop() then
+ if not parser.stop or not parser:stop() then
error("Failed to abort parsing");
end
end