mod_auth_internal_hashed: Fixed SCRAM-SHA-1 mechanism to not traceback on non-existen...
[prosody.git] / util / sasl_cyrus.lua
index 5178f7cda69ec2093ef0cc50f693cbcd8d722416..f5bfcbe9f4ea749a387d9df660e95c0dd0eeee26 100644 (file)
@@ -144,8 +144,7 @@ end
 -- select a mechanism to use
 function method:select(mechanism)
        self.mechanism = mechanism;
-       if not self.mechs then self:mechanisms(); end
-       return self.mechs[mechanism];
+       return self:mechanisms()[mechanism];
 end
 
 -- feed new messages to process into the library