From 5593540ab6dd479927c3c1e9156e30ef7ab3313c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 18 Nov 2009 18:39:37 -0500 Subject: [PATCH] lmtp: Don't leak a client timeout and crash later. --HG-- branch : HEAD --- src/lmtp/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lmtp/client.c b/src/lmtp/client.c index db6b5b32cc..196f38f5a2 100644 --- a/src/lmtp/client.c +++ b/src/lmtp/client.c @@ -190,6 +190,8 @@ void client_io_reset(struct client *client) { if (client->io != NULL) io_remove(&client->io); + if (client->to_idle != NULL) + timeout_remove(&client->to_idle); client->io = io_add(client->fd_in, IO_READ, client_input, client); client->last_input = ioloop_time; client->to_idle = timeout_add(CLIENT_IDLE_TIMEOUT_MSECS, -- 2.47.3