From: Marco Bettini Date: Mon, 27 Mar 2023 08:19:38 +0000 (+0000) Subject: lib-master: stats_event_callback() - Skip if conn.output is already closed X-Git-Tag: 2.3.21~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e52db68ff49874ba35f576ee48bb997395c4b861;p=thirdparty%2Fdovecot%2Fcore.git lib-master: stats_event_callback() - Skip if conn.output is already closed This also prevents further errors from happening on the closed stream. --- diff --git a/src/lib-master/stats-client.c b/src/lib-master/stats-client.c index b7560005b0..6df5d1c399 100644 --- a/src/lib-master/stats-client.c +++ b/src/lib-master/stats-client.c @@ -238,7 +238,7 @@ stats_event_callback(struct event *event, enum event_callback_type type, return TRUE; struct stats_client *client = (struct stats_client *)stats_clients->connections; - if (client->conn.output == NULL) + if (client->conn.output == NULL || client->conn.output->closed) return TRUE; switch (type) {