]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: client-common-auth - Remove io first in client_auth_respond()
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 7 Oct 2023 22:48:41 +0000 (00:48 +0200)
committerstephan.bosch <stephan.bosch@open-xchange.com>
Mon, 23 Oct 2023 15:50:54 +0000 (15:50 +0000)
src/login-common/client-common-auth.c

index f487579bf2cf888d5ec83e6f9eb85da4427835fe..45c0d0304b1d4b4ca7cf982329f6fcdc1542d4f8 100644 (file)
@@ -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)