Diff

util/sasl_cyrus.lua @ 2720:289f68e704da

util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 01 Mar 2010 18:37:47 +0500
parent 2577:acb382c703e4
child 2881:4e6c6b1ddce7
line wrap: on
line diff
--- 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