fixup: properly detect fast

(cherry picked from commit 402882389ff3ae1afd91a9285a5601495b6a0347)
This commit is contained in:
Daniel Gultsch 2023-11-21 19:40:10 +01:00 committed by 12aw
parent 595f1698a6
commit adc0a88d9f

View file

@ -1585,7 +1585,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);