X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/322ae953e144d9e1fdc06d993d2e4551f5fb1322..cf1376206284:/src/src/smtp_in.c diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index e19c86ff8..aeaffeb37 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -5105,15 +5105,18 @@ while (done <= 0) } if (chunking_state > CHUNKING_OFFERED) - rc = OK; /* No predata ACL or go-ahead output for BDAT */ + rc = OK; /* There is no predata ACL or go-ahead output for BDAT */ else { - /* If there is an ACL, re-check the synchronization afterwards, since the - ACL may have delayed. To handle cutthrough delivery enforce a dummy call - to get the DATA command sent. */ + /* If there is a predata-ACL, re-check the synchronization afterwards, + since the ACL may have delayed. To handle cutthrough delivery enforce a + dummy call to get the DATA command sent. */ if (!acl_smtp_predata && cutthrough.cctx.sock < 0) + { + if (!check_sync()) goto SYNC_FAILURE; rc = OK; + } else { uschar * acl = acl_smtp_predata ? acl_smtp_predata : US"accept";