dovecot-2.0-sslstream: lmtp proxy: Don't crash if all RCPT TOs f...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:56:42 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/8f6995923fbd
changeset: 10400:8f6995923fbd
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 24 14:32:10 2009 -0500
description:
lmtp proxy: Don't crash if all RCPT TOs fail to a remote.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lmtp/lmtp-proxy.c |    3 ++-

diffs (13 lines):

diff -r a144e918938c -r 8f6995923fbd src/lmtp/lmtp-proxy.c
--- a/src/lmtp/lmtp-proxy.c	Tue Nov 24 14:17:06 2009 -0500
+++ b/src/lmtp/lmtp-proxy.c	Tue Nov 24 14:32:10 2009 -0500
@@ -181,7 +181,8 @@ static void lmtp_conn_finish(void *conte
 {
 	struct lmtp_proxy_connection *conn = context;
 
-	i_stream_unref(&conn->data_input);
+	if (conn->data_input != NULL)
+		i_stream_unref(&conn->data_input);
 	lmtp_proxy_try_finish(conn->proxy);
 }
 


More information about the dovecot-cvs mailing list