util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.

Mon, 01 Mar 2010 18:37:47 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 01 Mar 2010 18:37:47 +0500
changeset 2720
289f68e704da
parent 2716
4e4a24a1288d
child 2722
2781d063afa0

util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.

util/sasl_cyrus.lua file | annotate | diff | comparison | revisions
--- a/util/sasl_cyrus.lua	Thu Feb 25 18:25:17 2010 +0000
+++ b/util/sasl_cyrus.lua	Mon Mar 01 18:37:47 2010 +0500
@@ -87,6 +87,7 @@
 -- 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
 

mercurial