aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-22 22:22:57 +0200
committerKim Alvefur <zash@zash.se>2018-05-22 22:22:57 +0200
commit99ded745a65df5d35a5d4aad15c6acad34ea73c9 (patch)
tree3c0b96ad4467a8cbdbfb7effc9f6bd690a3e28e2 /plugins/mod_c2s.lua
parent380e51758c60f7b3116a6749354bd4161d151a51 (diff)
downloadprosody-99ded745a65df5d35a5d4aad15c6acad34ea73c9.tar.gz
prosody-99ded745a65df5d35a5d4aad15c6acad34ea73c9.zip
mod_c2s: Avoid concatenating potential nil value (fixes #753)
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 9f33d3d8..8bcce6d8 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -168,7 +168,7 @@ local function session_close(session, reason)
function session.send() return false; end
local reason_text = (reason and (reason.name or reason.text or reason.condition)) or reason;
- session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason_text or "session closed");
+ session.log("debug", "c2s stream for %s closed: %s", session.full_jid or session.ip or "<unknown>", reason_text or "session closed");
-- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote
local conn = session.conn;