]> dgit.raspbian.org Git - dovecot.git/commitdiff
[PATCH 1/5] login-common: client-common - Add client_disconnect() vfunc
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 28 Nov 2025 02:32:36 +0000 (03:32 +0100)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
Gbp-Pq: Name 0001-login-common-client-common-Add-client_disconnect-vfu.patch

src/login-common/client-common.c
src/login-common/client-common.h

index c4265f4d36891e4b61724af96b5d47a811ca7395..af63133c663096738352c8d8ce04f03b1c6de241 100644 (file)
@@ -433,6 +433,8 @@ void client_disconnect(struct client *client, const char *reason)
        if (!client->login_success) {
                bool unref = FALSE;
 
+               if (client->v.disconnect != NULL)
+                       client->v.disconnect(client, reason);
                io_remove(&client->io);
                ssl_iostream_destroy(&client->ssl_iostream);
                if (client->iostream_fd_proxy != NULL) {
index b43127915b982bdf9d2fa642b2f795afac3420f8..358d05cdff5a3ac3e1be30882d2e53d2d6ca0be0 100644 (file)
@@ -122,6 +122,7 @@ struct client_auth_reply {
 struct client_vfuncs {
        struct client *(*alloc)(pool_t pool);
        int (*create)(struct client *client);
+       void (*disconnect)(struct client *client, const char *reason);
        void (*destroy)(struct client *client);
        int (*reload_config)(struct client *client, const char **error_r);
        void (*notify_auth_ready)(struct client *client);