Mercurial > dovecot > core-2.2
changeset 10366:cc5d8a5deab2 HEAD
lmtp: Don't leak a client timeout and crash later.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Nov 2009 18:39:37 -0500 |
parents | 7664afedc7bb |
children | 75d3d4374dda |
files | src/lmtp/client.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lmtp/client.c Wed Nov 18 18:24:44 2009 -0500 +++ b/src/lmtp/client.c Wed Nov 18 18:39:37 2009 -0500 @@ -190,6 +190,8 @@ { 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,