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
commitea7586b3634a22191995ff589a72b32eddc32e3b (patch)
tree414a6572a3448fc4830b58946298771baba21f0f
parent3a34c326b306321454bdae018b93bf3cf0d4875a (diff)
downloadprosody-ea7586b3634a22191995ff589a72b32eddc32e3b.tar.gz
prosody-ea7586b3634a22191995ff589a72b32eddc32e3b.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