Commit e4b5b96f authored by csh's avatar csh

OF-735 minor addition to <invalid-mechanism/> SASL failure.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13981 b35dd754-fafc-0310-a699-88a17e54d16e
parent f2973b5f
......@@ -293,6 +293,12 @@ public class SASLAuthentication {
SaslServer ss = Sasl.createSaslServer(mechanism, "xmpp",
JiveGlobals.getProperty("xmpp.fqdn", session.getServerName()), props,
new XMPPCallbackHandler());
if (ss == null) {
authenticationFailed(session, Failure.INVALID_MECHANISM);
return Status.failed;
}
// evaluateResponse doesn't like null parameter
byte[] token = new byte[0];
if (doc.getText().length() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment