fixup: properly detect fast

This commit is contained in:
Daniel Gultsch 2023-11-21 19:40:10 +01:00
parent 59ff27062b
commit 402882389f
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -1464,7 +1464,7 @@ public class XmppConnection implements Runnable {
this.validate(saslMechanism, mechanisms); this.validate(saslMechanism, mechanisms);
final boolean quickStartAvailable; final boolean quickStartAvailable;
final String firstMessage = saslMechanism.getClientFirstMessage(sslSocketOrNull(this.socket)); final String firstMessage = saslMechanism.getClientFirstMessage(sslSocketOrNull(this.socket));
final boolean usingFast = SaslMechanism.hashedToken(LoginInfo.mechanism(this.loginInfo)); final boolean usingFast = SaslMechanism.hashedToken(saslMechanism);
final Element authenticate; final Element authenticate;
if (version == SaslMechanism.Version.SASL) { if (version == SaslMechanism.Version.SASL) {
authenticate = new Element("auth", Namespace.SASL); authenticate = new Element("auth", Namespace.SASL);