dovecot-2.0-sslstream: lmtp: Don't leak a client timeout and cra...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:34 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/cc5d8a5deab2
changeset: 10367:cc5d8a5deab2
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 18 18:39:37 2009 -0500
description:
lmtp: Don't leak a client timeout and crash later.
diffstat:
1 file changed, 2 insertions(+)
src/lmtp/client.c | 2 ++
diffs (12 lines):
diff -r 7664afedc7bb -r cc5d8a5deab2 src/lmtp/client.c
--- 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 @@ void client_io_reset(struct client *clie
{
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,
More information about the dovecot-cvs
mailing list