summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmail-smtpd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index b2c0263..3352911 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -813,6 +813,9 @@ int saferead(fd,buf,len) int fd; char *buf; int len;
813 813
814char ssinbuf[1024]; 814char ssinbuf[1024];
815substdio ssin = SUBSTDIO_FDBUF(saferead,0,ssinbuf,sizeof ssinbuf); 815substdio ssin = SUBSTDIO_FDBUF(saferead,0,ssinbuf,sizeof ssinbuf);
816#ifdef TLS
817void flush_io() { ssin.p = 0; flush(); }
818#endif
816 819
817struct qmail qqt; 820struct qmail qqt;
818unsigned int bytestooverflow = 0; 821unsigned int bytestooverflow = 0;
@@ -1566,7 +1569,7 @@ struct commands smtpcommands[] = {
1566, { "rset", smtp_rset, 0 } 1569, { "rset", smtp_rset, 0 }
1567, { "help", smtp_help, flush } 1570, { "help", smtp_help, flush }
1568#ifdef TLS 1571#ifdef TLS
1569, { "starttls", smtp_tls, flush } 1572, { "starttls", smtp_tls, flush_io }
1570#endif 1573#endif
1571, { "noop", err_noop, flush } 1574, { "noop", err_noop, flush }
1572, { "vrfy", err_vrfy, flush } 1575, { "vrfy", err_vrfy, flush }