mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
saslauth: Error out "better" on invalid module arguments
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1809 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -37,12 +37,18 @@ public:
|
||||
}
|
||||
else {
|
||||
CUtils::PrintError("Ignoring invalid SASL pwcheck method: " + *it);
|
||||
sMessage = "Ignored invalid SASL pwcheck method";
|
||||
}
|
||||
}
|
||||
method.TrimRight();
|
||||
|
||||
if (sasl_server_init(NULL, NULL) != SASL_OK){
|
||||
CUtils::PrintError("SASL Could Not Be Initialized - Halting Startup");
|
||||
if (method.empty()) {
|
||||
sMessage = "Need a pwcheck method as argument (saslauthd, auxprop)";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sasl_server_init(NULL, NULL) != SASL_OK) {
|
||||
sMessage = "SASL Could Not Be Initialized - Halting Startup";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user