Comparison

util/sasl.lua @ 2735:65bbc4b67733

util.sasl: Fixed a nil global access.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 02 Mar 2010 00:51:27 +0500
parent 2254:f966c8699f5b
child 2925:692b3c6c5bd2
child 2997:6ccaefea80ec
comparison
equal deleted inserted replaced
2734:7941617b15f9 2735:65bbc4b67733
141 --if message == "" or message == nil then return "failure", "malformed-request" end 141 --if message == "" or message == nil then return "failure", "malformed-request" end
142 return self.mech_i(self, message); 142 return self.mech_i(self, message);
143 end 143 end
144 144
145 -- load the mechanisms 145 -- load the mechanisms
146 load_mechs = {"plain", "digest-md5", "anonymous", "scram"} 146 local load_mechs = {"plain", "digest-md5", "anonymous", "scram"}
147 for _, mech in ipairs(load_mechs) do 147 for _, mech in ipairs(load_mechs) do
148 local name = "util.sasl."..mech; 148 local name = "util.sasl."..mech;
149 local m = require(name); 149 local m = require(name);
150 m.init(registerMechanism) 150 m.init(registerMechanism)
151 end 151 end