util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
authorWaqas Hussain <waqas20@gmail.com>
Mon, 1 Mar 2010 13:37:47 +0000 (18:37 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Mon, 1 Mar 2010 13:37:47 +0000 (18:37 +0500)
util/sasl_cyrus.lua

index 57c6ba3cbb3b68c3ad6d1ef9f1b75e123ad94011..980af598a6a2d2f5f0fd1d04b419bd38dc484972 100644 (file)
@@ -87,6 +87,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];
 end