FAST: Check for changed token after sasl2Success.

This commit is contained in:
Martin Dosch 2024-04-12 10:25:55 +02:00
parent 12a04e0950
commit 961b7e435e

View File

@ -742,7 +742,7 @@ func (c *Client) init(o *Options) error {
if bind2 {
c.jid = v.AuthorizationIdentifier
}
if v.Token.Token != "" {
if v.Token.Token != "" && v.Token.Token != o.FastToken {
m := f.Authentication.Inline.Fast.Mechanism
switch {
case slices.Contains(m, "HT-SHA-256-EXPR") && tls13: