dovecot-2.0: lmtp proxy: Crashfix.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 2 11:19:35 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/bd28e6f29711
changeset: 10824:bd28e6f29711
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 02 11:19:32 2010 +0200
description:
lmtp proxy: Crashfix.
diffstat:
src/lmtp/lmtp-proxy.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r fb0666d3b067 -r bd28e6f29711 src/lmtp/lmtp-proxy.c
--- a/src/lmtp/lmtp-proxy.c Tue Mar 02 10:28:24 2010 +0200
+++ b/src/lmtp/lmtp-proxy.c Tue Mar 02 11:19:32 2010 +0200
@@ -100,6 +100,8 @@
o_stream_unref(&proxy->client_output);
if (proxy->to_data_idle != NULL)
timeout_remove(&proxy->to_data_idle);
+ if (proxy->to_finish != NULL)
+ timeout_remove(&proxy->to_finish);
if (proxy->to != NULL)
timeout_remove(&proxy->to);
if (proxy->io != NULL)
@@ -191,7 +193,9 @@
static void lmtp_proxy_try_finish(struct lmtp_proxy *proxy)
{
if (lmtp_proxy_send_data_replies(proxy) &&
- (proxy->data_input->eof || proxy->data_input->stream_errno != 0 ||
+ (proxy->data_input == NULL ||
+ proxy->data_input->eof ||
+ proxy->data_input->stream_errno != 0 ||
proxy->input_timeout))
lmtp_proxy_finish(proxy);
}
More information about the dovecot-cvs
mailing list