]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: client-common-auth - Assert that a new authentication does not occur...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 5 Nov 2025 23:30:02 +0000 (00:30 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Nov 2025 20:22:55 +0000 (20:22 +0000)
src/login-common/client-common-auth.c

index 350bbbfacffcae903d159b7b3cd55eb186f1cbed..7815e687f5c3c3ebc3a6ee8a6d07aabafa8432af 100644 (file)
@@ -1097,6 +1097,8 @@ client_auth_begin_common(struct client *client, const char *mech_name,
                         enum sasl_server_auth_flags auth_flags,
                         const char *init_resp)
 {
+       i_assert(!client->authenticating);
+
        if (!client->connection_secured &&
            strcmp(client->ssl_server_set->ssl, "required") == 0) {
                e_info(client->event_auth, "Login failed: "