mod_dialback: Fix potential traceback in case of missing addressing

Not tested. Assuming nothing good comes from continuing the program flow
after this. The connection should get closed and the event gets aborted
by a traceback anyways.
This commit is contained in:
Kim Alvefur 2019-11-02 15:40:20 +01:00
parent e131bbd3a4
commit fd7ac7b72e

View file

@ -107,6 +107,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
return true;
elseif not from then
origin:close("improper-addressing");
return true;
end
if dwd and origin.secure then