From 0f78fff909b3c670fc39ab40a12854d06acd6f98 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 22 May 2018 22:22:57 +0200 Subject: mod_c2s: Avoid concatenating potential nil value (fixes #753) --- plugins/mod_c2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "", reason_text or "session closed"); -- Authenticated incoming stream may still be sending us stanzas, so wait for from remote local conn = session.conn; -- cgit v1.2.3