plugins/mod_saslauth.lua
changeset 5860 87e2fafba5df
parent 5843 fb6573e191cf
child 6014 d61026bee038
--- a/plugins/mod_saslauth.lua	Mon Oct 07 12:43:00 2013 +0200
+++ b/plugins/mod_saslauth.lua	Mon Oct 07 12:56:21 2013 +0200
@@ -242,7 +242,7 @@
 			return;
 		end
 		origin.sasl_handler = usermanager_get_sasl_handler(module.host, origin);
-		if origin.secure then
+		if origin.encrypted then
 			-- check wether LuaSec has the nifty binding to the function needed for tls-unique
 			-- FIXME: would be nice to have this check only once and not for every socket
 			if origin.conn:socket().getpeerfinished then