summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-06-12 22:13:46 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2023-06-20 21:01:12 +0100
commit4d108e7777e9b8e5fb212c31812fef61529cd414 (patch)
tree88ca8d12413808908c544ae3715637ca4d07a313
parent3531d1a756c5a72dfc825fbfdc7184cd017a7f39 (diff)
Cancel early-pipe on an observed advertising change
-rw-r--r--src/src/transports/smtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index c72028ce9..24ee577a2 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -1115,7 +1115,10 @@ if (pending_EHLO)
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 */
}