Mercurial > dovecot > core-2.2
changeset 13612:21566f1780ef
auth: Don't re-add IO to master connection input.
This fixes a panic crash in some situations.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 07 Oct 2011 19:25:52 +0300 |
parents | 99ff7bf3c490 |
children | e0a339d677cb |
files | src/auth/auth-master-connection.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-master-connection.c Fri Oct 07 18:18:20 2011 +0300 +++ b/src/auth/auth-master-connection.c Fri Oct 07 19:25:52 2011 +0300 @@ -566,7 +566,8 @@ return 1; } - if (o_stream_get_buffer_used_size(conn->output) <= MAX_OUTBUF_SIZE/2) { + if (conn->io == NULL && + o_stream_get_buffer_used_size(conn->output) <= MAX_OUTBUF_SIZE/2) { /* allow input again */ conn->io = io_add(conn->fd, IO_READ, master_input, conn); }