mod_dialback: Fix potential traceback in case of missing addressing
authorKim Alvefur <zash@zash.se>
Sat, 02 Nov 2019 15:40:20 +0100
changeset 10384 18685a5e362e
parent 10383 b917602eac04
child 10385 66fa45d24481
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.
plugins/mod_dialback.lua
--- a/plugins/mod_dialback.lua	Sat Nov 02 15:39:40 2019 +0100
+++ b/plugins/mod_dialback.lua	Sat Nov 02 15:40:20 2019 +0100
@@ -107,6 +107,7 @@
 			return true;
 		elseif not from then
 			origin:close("improper-addressing");
+			return true;
 		end
 
 		if dwd and origin.secure then