Software /
code /
prosody
Changeset
1047:8c2d88cda1dd
mod_bosh: Fix nil indexing when client connects to unknown host
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 03:25:11 +0100 |
parents | 1046:6fef969ff307 |
children | 1048:45fc590539cd |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Thu Apr 23 02:55:31 2009 +0100 +++ b/plugins/mod_bosh.lua Thu Apr 23 03:25:11 2009 +0100 @@ -102,7 +102,7 @@ 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;