aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-02-03 16:14:43 +0100
committerKim Alvefur <zash@zash.se>2021-02-03 16:14:43 +0100
commit1f7686a6bd823ca3af97f08d9d360fdb4dbbb97f (patch)
tree52344cad860eda505f868112c3b1f841037956df
parentf539be51b3e4ca30f223d5064db59133dba32c7c (diff)
downloadprosody-1f7686a6bd823ca3af97f08d9d360fdb4dbbb97f.tar.gz
prosody-1f7686a6bd823ca3af97f08d9d360fdb4dbbb97f.zip
util.xmppstream: Ensure stream 'id' is always present (fix #1626)
Backout c2d144d3f8dd
-rw-r--r--util/xmppstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 6aa1def3..bab0f253 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -262,7 +262,7 @@ local function new(session, stream_callbacks, stanza_size_limit)
["xml:lang"] = "en",
xmlns = stream_callbacks.default_ns,
version = session.version and (session.version > 0 and "1.0" or nil),
- id = session.streamid,
+ id = session.streamid or "",
from = from or session.host, to = to,
};
if session.stream_attrs then