From 103c1ec67ae23d90051b60933854bfdcfde20e08 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Thu, 6 Nov 2025 00:30:02 +0100 Subject: [PATCH] login-common: client-common-auth - Assert that a new authentication does not occur when one is still running --- src/login-common/client-common-auth.c | 2 ++ 1 file changed, 2 insertions(+) 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: " -- 2.47.3