aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-02 13:24:33 +0100
committerKim Alvefur <zash@zash.se>2019-11-02 13:24:33 +0100
commit522916d7c71c35d61d03ff25dc5d8e726f6bf9b3 (patch)
treee4ad81658d6c20357a34568bcb14991638e04391 /core
parentb679ffe808759514c5dc12151ea7ff28c17c43a1 (diff)
downloadprosody-522916d7c71c35d61d03ff25dc5d8e726f6bf9b3.tar.gz
prosody-522916d7c71c35d61d03ff25dc5d8e726f6bf9b3.zip
core.sessionmanager: Fix traceback from passing nil to resourceprep
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 29779c3c..a62db906 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -150,7 +150,7 @@ local function bind_resource(session, resource)
resource = event_payload.resource;
end
- resource = resourceprep(resource);
+ resource = resourceprep(resource or "");
resource = resource ~= "" and resource or generate_identifier();
--FIXME: Randomly-generated resources must be unique per-user, and never conflict with existing