dovecot-2.1: lmtp: RSET/LHLO should reset any pending proxy conn...

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 22 19:13:49 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/2efd5eb7966d
changeset: 14721:2efd5eb7966d
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 21 09:23:58 2012 +0200
description:
lmtp: RSET/LHLO should reset any pending proxy connections.

diffstat:

 src/lmtp/client.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 02aa054c762f -r 2efd5eb7966d src/lmtp/client.c
--- a/src/lmtp/client.c	Fri Sep 21 09:22:54 2012 +0200
+++ b/src/lmtp/client.c	Fri Sep 21 09:23:58 2012 +0200
@@ -294,6 +294,9 @@
 {
 	struct mail_recipient *rcpt;
 
+	if (client->proxy != NULL)
+		lmtp_proxy_deinit(&client->proxy);
+
 	if (array_is_created(&client->state.rcpt_to)) {
 		array_foreach_modifiable(&client->state.rcpt_to, rcpt)
 			mail_storage_service_user_free(&rcpt->service_user);


More information about the dovecot-cvs mailing list