aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/s2smanager.lua2
-rw-r--r--core/sessionmanager.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 7de97d0c..e8d8e723 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -491,7 +491,7 @@ function mark_connected(session)
end
end
-local function null_data_handler(data) log("debug", "Discarding data from destroyed s2s session: %s", data); end
+local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed s2s session: %s", data); end
function destroy_session(session)
(session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 9df7823c..2dd0070b 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -66,7 +66,7 @@ function new_session(conn)
return session;
end
-local function null_data_handler(data) log("debug", "Discarding data from destroyed c2s session: %s", data); end
+local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed c2s session: %s", data); end
function destroy_session(session, err)
(session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");