From: Stephan Bosch Date: Sat, 7 Oct 2023 22:48:41 +0000 (+0200) Subject: login-common: client-common-auth - Remove io first in client_auth_respond() X-Git-Tag: 2.4.0~2495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2772b6177c65106843bb376351f60600cbeba4ff;p=thirdparty%2Fdovecot%2Fcore.git login-common: client-common-auth - Remove io first in client_auth_respond() --- diff --git a/src/login-common/client-common-auth.c b/src/login-common/client-common-auth.c index f487579bf2..45c0d0304b 100644 --- a/src/login-common/client-common-auth.c +++ b/src/login-common/client-common-auth.c @@ -803,11 +803,12 @@ client_auth_handle_reply(struct client *client, void client_auth_respond(struct client *client, const char *response) { + if (!client_does_custom_io(client)) + io_remove(&client->io); + client->auth_client_continue_pending = FALSE; client_set_auth_waiting(client); auth_client_request_continue(client->auth_request, response); - if (!client_does_custom_io(client)) - io_remove(&client->io); } void client_auth_abort(struct client *client)