Gbp-Pq: Name 0001-login-common-client-common-Add-client_disconnect-vfu.patch
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) {
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);