projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_httpserver: Serve index.html if a request is made for a directory and it contains...
[prosody.git]
/
util
/
sasl.lua
diff --git
a/util/sasl.lua
b/util/sasl.lua
index 306acc0c590998be8eb151e3ddc7cdf13ad12058..c9225f0d776436ab1ad0d44b456318392fc43d71 100644
(file)
--- a/
util/sasl.lua
+++ b/
util/sasl.lua
@@
-108,11
+108,8
@@
function method:select(mechanism)
return false;
end
- self.mech_i = mechanisms[mechanism]
- if self.mech_i == nil then
- return false;
- end
- return true;
+ self.mech_i = mechanisms[mechanism];
+ return (self.mech_i ~= nil);
end
-- feed new messages to process into the library