dovecot-2.0: lmtp proxy: Don't crash if all RCPT TOs fail to a r...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Tue Nov 24 21:32:17 EET 2009
    
    
  
details:   http://hg.dovecot.org/dovecot-2.0/rev/8f6995923fbd
changeset: 10399: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