summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-01-04 17:59:23 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2021-01-04 17:59:23 +0000
commit80acfd092b5f785bd971dcf911b4fe7aec9faaa2 (patch)
treee50c9b1169ae498cb9b5079ffade81893e4a1f92 /src
parent90c2ddb98a7ae6ce99fb8f6312abbe34b7f561ba (diff)
BSD: avoid delay on continued-connection
Broken-by: 6454662ecb
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index 8f42871bf..2a600d480 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -4393,10 +4393,13 @@ This change is being made on 31-Jul-98. After over a year of trouble-free
operation, the old commented-out code was removed on 17-Sep-99. */
SEND_QUIT:
+if (sx->send_quit)
+ {
#ifdef EXIM_TCP_CORK
-(void) setsockopt(sx->cctx.sock, IPPROTO_TCP, EXIM_TCP_CORK, US &on, sizeof(on));
+ (void) setsockopt(sx->cctx.sock, IPPROTO_TCP, EXIM_TCP_CORK, US &on, sizeof(on));
#endif
-if (sx->send_quit) (void)smtp_write_command(sx, SCMD_FLUSH, "QUIT\r\n");
+ (void)smtp_write_command(sx, SCMD_FLUSH, "QUIT\r\n");
+ }
END_OFF: