]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Change hardcoded 3 to AUTH_CLIENT_MINOR_VERSION_CHANNEL_BINDING
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Feb 2025 09:57:10 +0000 (11:57 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:16 +0000 (12:34 +0200)
src/auth/auth-client-connection.c

index 99f00d4ed1476f30323996104a61718295462bed..d970f64bd3d85e765863a8606ee197dbd8d0bd96 100644 (file)
@@ -196,7 +196,7 @@ static void auth_client_finish_handshake(struct auth_client_connection *conn)
                        mech_dovecot_token.mech_name, "\tprivate\n", NULL);
        } else {
                mechanisms = str_c(conn->auth->reg->handshake);
-               if (conn->conn.minor_version >= 3) {
+               if (conn->conn.minor_version >= AUTH_CLIENT_MINOR_VERSION_CHANNEL_BINDING) {
                        mechanisms_cbind =
                                str_c(conn->auth->reg->handshake_cbind);
                }