mod_dialback: Fix logic bug - we should have both a to and from at this point
authorMatthew Wild <mwild1@gmail.com>
Fri, 11 May 2012 01:54:36 +0100
changeset 4847 7a7cc4d98faf
parent 4846 3bc3498df0a0
child 4848 f7a4920aed6b
mod_dialback: Fix logic bug - we should have both a to and from at this point
plugins/mod_dialback.lua
--- a/plugins/mod_dialback.lua	Fri May 11 01:53:32 2012 +0100
+++ b/plugins/mod_dialback.lua	Fri May 11 01:54:36 2012 +0100
@@ -91,7 +91,7 @@
 			origin.to_host = nameprep(attr.to);
 		end
 
-		if not origin.from_host and not origin.to_host then
+		if not origin.from_host or not origin.to_host then
 			origin.log("debug", "Improper addressing supplied, no to or from?");
 			origin:close("improper-addressing");
 		end