From 4d108e7777e9b8e5fb212c31812fef61529cd414 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 12 Jun 2023 22:13:46 +0100 Subject: [PATCH] Cancel early-pipe on an observed advertising change --- src/transports/smtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transports/smtp.c b/src/transports/smtp.c index c72028ce9..24ee577a2 100644 --- a/src/transports/smtp.c +++ b/src/transports/smtp.c @@ -1111,15 +1111,18 @@ if (pending_EHLO) *(tls_out.active.sock < 0 ? &sx->ehlo_resp.cleartext_features : &sx->ehlo_resp.crypted_features) = peer_offered; *ap = authbits; write_ehlo_cache_entry(sx); } else + { invalidate_ehlo_cache_entry(sx); + sx->early_pipe_active = FALSE; /* cancel further early-pipe on this conn */ + } return OK; /* just carry on */ } # ifdef EXPERIMENTAL_ESMTP_LIMITS /* If we are handling LIMITS, compare the actual EHLO LIMITS values with the cached values and invalidate cache if different. OK to carry on with connect since values are advisory. */ -- 2.40.1