aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-01-25 11:49:27 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-01-25 11:49:27 +0500
commit36936e4b059694ccc4e4f9d9e2d63c0aec24bf60 (patch)
tree414a6572a3448fc4830b58946298771baba21f0f
parent5b8670c951412d8ae46c95e39ac0cfb50a530947 (diff)
downloadprosody-36936e4b059694ccc4e4f9d9e2d63c0aec24bf60.tar.gz
prosody-36936e4b059694ccc4e4f9d9e2d63c0aec24bf60.zip
util.xmppstream: Have faith in the XML parser matching start and end tags.
-rw-r--r--util/xmppstream.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index adf4a359..09198f21 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -140,16 +140,8 @@ function new_sax_handlers(session, stream_callbacks)
stanza = t_remove(stack);
end
else
- if tagname == stream_tag then
- if cb_streamclosed then
- cb_streamclosed(session);
- end
- else
- local curr_ns,name = tagname:match(ns_pattern);
- if name == "" then
- curr_ns, name = "", curr_ns;
- end
- cb_error(session, "parse-error", "unexpected-element-close", name);
+ if cb_streamclosed then
+ cb_streamclosed(session);
end
end
end