dovecot-2.2: pop3: Fixed potential assert-crash on disconnect.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 20 13:35:54 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/d14f30ccd118
changeset: 17737:d14f30ccd118
user: Timo Sirainen <tss at iki.fi>
date: Wed Aug 20 15:35:43 2014 +0200
description:
pop3: Fixed potential assert-crash on disconnect.
diffstat:
src/pop3/pop3-client.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f0f19e5580f0 -r d14f30ccd118 src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c Wed Aug 20 15:32:15 2014 +0200
+++ b/src/pop3/pop3-client.c Wed Aug 20 15:35:43 2014 +0200
@@ -811,7 +811,8 @@
if (client->cmd == NULL) {
if (o_stream_get_buffer_used_size(client->output) <
- POP3_OUTBUF_THROTTLE_SIZE/2 && client->io == NULL) {
+ POP3_OUTBUF_THROTTLE_SIZE/2 && client->io == NULL &&
+ !client->input->closed) {
/* enable input again */
client->io = io_add_istream(client->input, client_input,
client);
More information about the dovecot-cvs
mailing list