From: Stephan Bosch Date: Wed, 5 Nov 2025 23:30:02 +0000 (+0100) Subject: login-common: client-common-auth - Assert that a new authentication does not occur... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=103c1ec67ae23d90051b60933854bfdcfde20e08;p=thirdparty%2Fdovecot%2Fcore.git login-common: client-common-auth - Assert that a new authentication does not occur when one is still running --- diff --git a/src/login-common/client-common-auth.c b/src/login-common/client-common-auth.c index 350bbbfacf..7815e687f5 100644 --- a/src/login-common/client-common-auth.c +++ b/src/login-common/client-common-auth.c @@ -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: "