aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-23 03:25:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-23 03:25:11 +0100
commit850e8c18b0f06229c8f245c2a39856857815d964 (patch)
treea27d47299ba4d526f2b7119c3aa824627c729c3d /plugins/mod_bosh.lua
parent6b09371d4a4e8063ca6b1b67dff15ebcd143399d (diff)
downloadprosody-850e8c18b0f06229c8f245c2a39856857815d964.tar.gz
prosody-850e8c18b0f06229c8f245c2a39856857815d964.zip
mod_bosh: Fix nil indexing when client connects to unknown host
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 58c2b5aa..0b39d903 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -102,7 +102,7 @@ end
local function bosh_reset_stream(session) session.notopen = true; end
-local session_close_reply = { headers = default_headers, body = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate" }) };
+local session_close_reply = { headers = default_headers, body = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate" }), attr = {} };
local function bosh_close_stream(session, reason)
(session.log or log)("info", "BOSH client disconnected");
session_close_reply.attr.condition = reason;