]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-client-connection - Fix assertion occurring when DOVECOT-TOKEN mechanism...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 27 Jul 2022 21:07:29 +0000 (23:07 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Feb 2023 09:21:45 +0000 (09:21 +0000)
It was not returned as a "private" mechanism, which now triggers a panic due to
a recently added assertion.

Panic was:

Panic: file sasl-server.c: line 520 (sasl_server_auth_begin): assertion failed: (!private || (mech->flags & MECH_SEC_PRIVATE) != 0)

src/auth/auth-client-connection.c

index e15d0911c54bc55e028319addb2a2a8beea1672b..7064b9d0b0d598627ea45c1caf024c8d73f03c6a 100644 (file)
@@ -348,7 +348,7 @@ void auth_client_connection_create(struct auth *auth, int fd,
 
        if (token_auth) {
                mechanisms = t_strconcat("MECH\t",
-                       mech_dovecot_token.mech_name, "\n", NULL);
+                       mech_dovecot_token.mech_name, "\tprivate\n", NULL);
        } else {
                mechanisms = str_c(auth->reg->handshake);
        }