Software /
code /
prosody
Diff
plugins/mod_dialback.lua @ 11120:b2331f3dfeea
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 09:50:33 +0100 |
parent | 10380:18685a5e362e |
child | 11526:15a3db955ad3 |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Thu Oct 01 15:08:58 2020 +0100 +++ b/plugins/mod_dialback.lua Wed Sep 30 09:50:33 2020 +0100 @@ -93,6 +93,11 @@ -- he wants to be identified through dialback -- We need to check the key with the Authoritative server local attr = stanza.attr; + if not attr.to or not attr.from then + origin.log("debug", "Missing Dialback addressing (from=%q, to=%q)", attr.from, attr.to); + origin:close("improper-addressing"); + return true; + end local to, from = nameprep(attr.to), nameprep(attr.from); if not hosts[to] then @@ -102,6 +107,7 @@ return true; elseif not from then origin:close("improper-addressing"); + return true; end if dwd and origin.secure then