]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Don't leak a client timeout and crash later.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 23:39:37 +0000 (18:39 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 23:39:37 +0000 (18:39 -0500)
--HG--
branch : HEAD

src/lmtp/client.c

index db6b5b32ccd682bfc7c032f6fb2f6e68f23f3e77..196f38f5a2e04d7aa82cb42267b31a8d30c8b3c8 100644 (file)
@@ -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,