changeset 10399:8f6995923fbd HEAD

lmtp proxy: Don't crash if all RCPT TOs fail to a remote.
author Timo Sirainen <tss@iki.fi>
date Tue, 24 Nov 2009 14:32:10 -0500
parents a144e918938c
children 96152031f5d9
files src/lmtp/lmtp-proxy.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 {
 	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);
 }