aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-03-30 02:56:34 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-03-30 02:56:34 +0500
commitd0380394a90b1cbf3b6c517ebd2ed2067ac02b74 (patch)
tree5ad3184b36bded337942fed685475cf7e8c6db93 /core/modulemanager.lua
parentd7defcb1ef376f82ebb63d42cd2344808e5805f8 (diff)
downloadprosody-d0380394a90b1cbf3b6c517ebd2ed2067ac02b74.tar.gz
prosody-d0380394a90b1cbf3b6c517ebd2ed2067ac02b74.zip
Fixed: modulemanager: IQs with extended elements in the default namespace could cause backtraces (related to issue #74)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 4391fc7f..a1d3bef3 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -204,7 +204,7 @@ function handle_stanza(host, origin, stanza)
local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns, origin.type;
if name == "iq" and xmlns == "jabber:client" then
if stanza.attr.type == "get" or stanza.attr.type == "set" then
- xmlns = stanza.tags[1].attr.xmlns;
+ xmlns = stanza.tags[1].attr.xmlns or "jabber:client";
log("debug", "Stanza of type %s from %s has xmlns: %s", name, origin_type, xmlns);
else
log("debug", "Discarding %s from %s of type: %s", name, origin_type, stanza.attr.type);